Skip to content

Commit

Permalink
Update releases.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xhilmi authored Aug 3, 2024
1 parent 764cf26 commit 551a469
Showing 1 changed file with 35 additions and 35 deletions.
70 changes: 35 additions & 35 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"

0 comments on commit 551a469

Please sign in to comment.