diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 73ce11c..be7aa30 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,10 +11,12 @@ jobs: if: github.event.pull_request.merged == true runs-on: ubuntu-latest steps: - - name: Checkout + - name: Checkout 'gh-pages' branch uses: actions/checkout@v4 with: + ref: gh-pages fetch-depth: 0 + persist-credentials: true - name: Configure Git run: | @@ -46,12 +48,11 @@ jobs: - name: Deploy to GitHub Pages if: env.has_release_label == 'true' run: | - git checkout gh-pages + git pull origin main --rebase helm package . --destination charts/ helm repo index . --url https://getlago.github.io/charts git add . - git add charts/ git commit -m "Update Helm repo index after release" git push origin gh-pages