Skip to content

Commit

Permalink
Merge pull request #108 from getlago/action-fix
Browse files Browse the repository at this point in the history
fix(github-page): Using multiple rebase to avoid push problem
  • Loading branch information
electrosenpai authored Oct 30, 2024
2 parents e1efb15 + 0b99ce3 commit 9c74cbc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9c74cbc

Please sign in to comment.