-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
39 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|