Skip to content

Commit

Permalink
fix wf
Browse files Browse the repository at this point in the history
  • Loading branch information
aalves08 committed Dec 23, 2024
1 parent 4aafb93 commit 31f2951
Showing 1 changed file with 39 additions and 39 deletions.
78 changes: 39 additions & 39 deletions .github/workflows/build-extension-charts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,43 +107,43 @@ jobs:
name: charts
path: tmp

# release:
# name: Release Build
# if: github.ref_type == 'tag' || (github.ref == 'refs/heads/main' && github.event_name != 'pull_request')
# needs: build-extension-artifact
# runs-on: ubuntu-latest
# permissions:
# actions: write
# contents: write
# deployments: write
# pages: write
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# with:
# ref: "${{ env.TARGET_BRANCH }}"

# - name: Configure Git
# run: |
# git config user.name 'github-actions[bot]'
# git config user.email 'github-actions[bot]@users.noreply.github.com'

# - name: Download build artifact
# uses: actions/download-artifact@v3
# with:
# name: charts

# - name: Commit build
# run: |
# git add ./{assets,charts,extensions,index.yaml}
# git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
# git push

# - name: Run chart-releaser
# uses: helm/[email protected]
# with:
# charts_dir: ./charts/*
# env:
# CR_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
# CR_SKIP_EXISTING: true
release:
name: Release Build
if: github.ref_type == 'tag' || (github.ref == 'refs/heads/main' && github.event_name != 'pull_request')
needs: build-extension-artifact
runs-on: ubuntu-latest
permissions:
actions: write
contents: write
deployments: write
pages: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: "${{ env.TARGET_BRANCH }}"

- name: Configure Git
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: Download build artifact
uses: actions/download-artifact@v3
with:
name: charts

- name: Commit build
run: |
git add ./{assets,charts,extensions,index.yaml}
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
git push
- name: Run chart-releaser
uses: helm/[email protected]
with:
charts_dir: ./charts/*
env:
CR_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
CR_SKIP_EXISTING: true

0 comments on commit 31f2951

Please sign in to comment.