Skip to content

Commit

Permalink
fix(release-gha): Fixing git commands and using action to checkout co…
Browse files Browse the repository at this point in the history
…rrectly
  • Loading branch information
electrosenpai committed Oct 30, 2024
1 parent 11d0b40 commit 0b99ce3
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 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,17 +48,10 @@ jobs:
- name: Deploy to GitHub Pages
if: env.has_release_label == 'true'
run: |
git fetch origin
git checkout gh-pages
git pull origin gh-pages --rebase
git pull origin main --rebase
helm package . --destination charts/
helm repo index . --url https://getlago.github.io/charts
git add .
git commit -m "Update Helm repo index after release"
git push origin gh-pages
Expand Down

0 comments on commit 0b99ce3

Please sign in to comment.