diff --git a/.github/workflows/release-chart.yml b/.github/workflows/release-chart.yml new file mode 100644 index 0000000..08827d2 --- /dev/null +++ b/.github/workflows/release-chart.yml @@ -0,0 +1,25 @@ +on: + push: + tags: + - helm/* + +permissions: + packages: write + +jobs: + release_chart: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - name: Get version + id: get_version + run: echo "::set-output name=version::${GITHUB_REF_NAME#helm/}" + - name: Push chart to GitHub Container Registry + uses: appany/helm-oci-chart-releaser@v0.4.1 + with: + name: publiccode-crawler + repository: ${{ github.repository }}/charts + tag: ${{ steps.get_version.outputs.version }} + registry: ghcr.io + registry_username: ${{ github.actor }} + registry_password: ${{ secrets.GITHUB_TOKEN }}