From 1338d2ef309cf745281f1fc45e2f2711c6b871f5 Mon Sep 17 00:00:00 2001 From: Trey Dockendorf Date: Wed, 1 Dec 2021 09:16:47 -0500 Subject: [PATCH 1/2] Use Helm release action that works with tags --- .github/workflows/publish.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 6aff613..d99fdb1 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -123,7 +123,7 @@ jobs: ko publish ./cmd/kubelet-csr-approver/ --base-import-paths --platform=linux/amd64,linux/arm64,linux/arm --tags $TAG publish-helm-charts: - if: "!startsWith(github.ref, 'refs/tags/v') && !github.event.pull_request.head.repo.fork" + if: "startsWith(github.ref, 'refs/tags/v') && !github.event.pull_request.head.repo.fork" needs: - lint - test-helm @@ -146,9 +146,9 @@ jobs: version: v3.5.0 - name: Run chart-releaser - uses: helm/chart-releaser-action@v1.2.1 - env: - CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + uses: stefanprodan/helm-gh-pages@master + with: + token: "${{ secrets.GITHUB_TOKEN }}" publish-untagged: if: "!startsWith(github.ref, 'refs/tags/v') && !github.event.pull_request.head.repo.fork" From b0998badec9b1e3aebf0574c82a6d87ebabebbcc Mon Sep 17 00:00:00 2001 From: Trey Dockendorf Date: Wed, 1 Dec 2021 09:29:36 -0500 Subject: [PATCH 2/2] Use specific tag for helm-gh-pages action --- .github/workflows/publish.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index d99fdb1..1b70b58 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -146,7 +146,7 @@ jobs: version: v3.5.0 - name: Run chart-releaser - uses: stefanprodan/helm-gh-pages@master + uses: stefanprodan/helm-gh-pages@v1.4.1 with: token: "${{ secrets.GITHUB_TOKEN }}"