diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index ec7f021..c7b4cea 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -40,43 +40,43 @@ jobs: # see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Publish Helm charts - uses: stefanprodan/helm-gh-pages@master - with: - token: ${{ secrets.USER_TOKEN }} - charts_dir: charts - charts_url: https://sithanos.github.io/alucard - owner: sithanos - repository: alucard - branch: main - target_dir: stable - - # permissions: - # contents: write - # continue-on-error: false - # needs: stage-lint-test # steps: - # - name: Checkout - # uses: actions/checkout@v3 + # - uses: actions/checkout@v2 + # - name: Publish Helm charts + # uses: stefanprodan/helm-gh-pages@master # with: - # fetch-depth: 0 + # token: ${{ secrets.USER_TOKEN }} + # charts_dir: charts + # charts_url: https://sithanos.github.io/alucard + # owner: sithanos + # repository: alucard + # branch: main + # target_dir: stable + + permissions: + contents: write + continue-on-error: false + needs: stage-lint-test + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 - # - name: Configure Git - # run: | - # git config user.name "$USER_NAME" - # git config user.email "$USER_EMAIL" + - name: Configure Git + run: | + git config user.name "$USER_NAME" + git config user.email "$USER_EMAIL" - # - name: Install Helm - # uses: azure/setup-helm@v4 - # env: - # GITHUB_TOKEN: "${{ secrets.USER_TOKEN }}" + - name: Install Helm + uses: azure/setup-helm@v4 + env: + GITHUB_TOKEN: "${{ secrets.USER_TOKEN }}" - # - name: Run chart-releaser - # uses: helm/chart-releaser-action@v1.6.0 - # with: - # charts_dir: charts/alucard - # config: charts/assets/cr.yaml - # env: - # CR_TOKEN: "${{ secrets.USER_TOKEN }}" + - name: Run chart-releaser + uses: helm/chart-releaser-action@v1.6.0 + with: + charts_dir: charts + config: charts/assets/cr.yaml + env: + CR_TOKEN: "${{ secrets.USER_TOKEN }}"