fix workflow permissions #8
Workflow file for this run
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 chart | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
packages: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Create Pages Release | |
uses: helm/[email protected] | |
with: | |
charts_dir: deploy | |
env: | |
CR_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Login helm to ghcr | |
run: echo "${{ secrets.GITHUB_TOKEN }}" | helm registry login -u ${{ github.actor }} --password-stdin ghcr.io | |
- name: Package helm chart into tgz | |
run: helm package deploy/helm/ | |
- name: Push helm chart to ghcr | |
run: helm push ./kubby-*.tgz oci://ghcr.io/corang/kubby-chart |