Skip to content

fix workflow permissions #8

fix workflow permissions

fix workflow permissions #8

Workflow file for this run

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