From a3157200a74f444df0dd5b3e4b1a7db911f4621c Mon Sep 17 00:00:00 2001 From: Pavel Kirilin <win10@list.ru> Date: Sat, 26 Mar 2022 19:14:50 +0400 Subject: [PATCH] Updated helm publishing action. (#65) Signed-off-by: Pavel Kirilin <win10@list.ru> --- .github/workflows/release.yml | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5767480..d193a7a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -126,25 +126,19 @@ jobs: file: deploy/Dockerfile tags: s3rius/rustus:latest,s3rius/rustus:${{env.APP_VERSION}} - release_helm: + upload_helm: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Configure Git - run: | - git config user.name "$GITHUB_ACTOR" - git config user.email "$GITHUB_ACTOR@users.noreply.github.com" - - name: Install Helm - uses: azure/setup-helm@v1 - with: - version: v3.7.1 - - name: Run chart-releaser - uses: helm/chart-releaser-action@v1.3.0 + - uses: actions/checkout@v2 + - name: Export version + run: echo "APP_VERSION=$(head -n 5 Cargo.toml | grep version | cut -d '"' -f2)" >> $GITHUB_ENV + - name: Publish Helm charts + uses: stefanprodan/helm-gh-pages@master with: - charts_dir: ./deploy - env: - CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + token: ${{ secrets.GITHUB_TOKEN }} + charts_dir: deploy + target_dir: helm_releases + app_version: ${{env.APP_VERSION}} publish_crate: runs-on: ubuntu-latest -- GitLab