Skip to content

Commit

Permalink
Fix release action workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nepalez committed Sep 14, 2023
1 parent f40f70e commit fa06782
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
branches:
- master
pull_request:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
check-helm-chart:
Expand All @@ -14,17 +16,11 @@ jobs:
uses: actions/checkout@v4
with:
path: anycable-helm/
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- id: setup-helm
name: Setup Helm
uses: azure/setup-helm@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- id: run-linter
name: Run Helm Linter
run: helm lint anycable-helm/anycable-go
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ on:
push:
tags:
- '*'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
release-helm-chart:
runs-on: ubuntu-latest
steps:
- id: checkout-anycable-helm
- id: checkout-repository
name: Checkout anycable-helm
uses: actions/checkout@v4
with:
Expand All @@ -18,17 +20,17 @@ jobs:
name: Setup Helm
uses: azure/setup-helm@v3

- id: prepare-helm-repository
- id: prepare-gh-pages
uses: actions/checkout@v4
needs: checkout-anycable-helm
needs: checkout-repository
with:
path: helm-repository/
ref: gh-pages

- id: pack-chart-version
name: Pack the current chart version
needs:
- checkout-anycable-helm
- checkout-repository
- prepare-gh-pages
run: helm package -d helm-repository/ anycable-helm/anycable-go/

Expand Down

0 comments on commit fa06782

Please sign in to comment.