Merge pull request #1 from jessebot/fix-deployment-to-grab-secret #2
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
name: Release | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'charts/**' | |
jobs: | |
release: | |
environment: helm-release | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Configure Git | |
run: | | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "[email protected]" | |
- name: Install Helm | |
uses: azure/[email protected] | |
id: helm-install | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Add dependency chart repos | |
run: | | |
helm dep update charts/matrix-sliding-sync | |
- name: Run chart-releaser | |
id: helm-release | |
uses: helm/[email protected] | |
env: | |
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
CR_GENERATE_RELEASE_NOTES: true |