diff --git a/.github/workflows/helm-charts-release.yaml b/.github/workflows/helm-charts-release.yaml index 6e6d15e..efd876a 100644 --- a/.github/workflows/helm-charts-release.yaml +++ b/.github/workflows/helm-charts-release.yaml @@ -9,6 +9,7 @@ on: permissions: contents: write + packages: write run-name: ${{ github.repository }} Release ${{ inputs.release }} @@ -17,7 +18,14 @@ concurrency: cancel-in-progress: true jobs: + publish-artifacts: + uses: ./.github/workflows/publish.yaml + with: + tag: ${{ inputs.release }} + secrets: inherit + github-release: + needs: [publish-artifacts] runs-on: ubuntu-latest steps: - name: Checkout diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 9f4164d..33c82f8 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -5,8 +5,20 @@ on: push: branches: - 'main' + workflow_dispatch: + inputs: + tag: + description: "Release tag to publish (e.g. v0.35.2)" + required: true + type: string + workflow_call: + inputs: + tag: + description: "Release tag to publish (e.g. v0.35.2)" + required: true + type: string env: - TAG_NAME: ${{ github.event.release.tag_name || (github.ref == 'refs/heads/main' && 'main') }} + TAG_NAME: ${{ inputs.tag || github.event.release.tag_name || (github.ref == 'refs/heads/main' && 'main') }} jobs: publish-docker: