fix(secret-operator): rbac missing (#101) #79
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
# Deploy a dev version snapshot of helm chart to GitHub releases, the target version is 0.0.0-dev. | |
# When re-deploy, the previous release will be replaced. | |
name: Chart Publish | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
- release-* | |
paths: | |
- "charts/**" | |
permissions: | |
contents: read | |
jobs: | |
upload-helm-chart: | |
if: ${{ github.repository_owner == 'zncdatadev' }} | |
permissions: | |
contents: write # for helm/chart-releaser-action to push chart release and create a release | |
name: Chart Publish | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Configure Git | |
run: | | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "[email protected]" | |
- name: Helm tool installer | |
uses: azure/[email protected] | |
- name: Delete existing release if exists | |
env: | |
GH_TOKEN: ${{ github.token }} | |
run: | | |
./scripts/delete-release.sh -r ${{ github.repository }} | |
# TODO: Sign the chart | |
- name: Run chart-releaser | |
uses: helm/[email protected] | |
env: | |
# set directly parameters to chart-releaser cli | |
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
CR_INDEX_PATH: "./index.yaml" |