Skip to content

Commit c5797cc

Browse files
committed
feat: Modify GitHub Actions workflow for Helm chart publishing
- Add changelog for Helm chart
1 parent 1e5d009 commit c5797cc

File tree

1 file changed

+15
-23
lines changed

1 file changed

+15
-23
lines changed

.github/workflows/pages.yaml

Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,26 @@
11
name: Release Helm Chart
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches:
67
- main
78
paths:
89
- '.github/workflows/pages.yaml'
910
- 'charts/**'
1011

11-
jobs:
12-
release:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- name: Checkout repository
16-
uses: actions/checkout@v4
17-
18-
- name: Set up Helm
19-
uses: azure/setup-helm@v4
20-
with:
21-
version: v3.17.0
12+
permissions: read-all
2213

23-
- name: Create Helm index
24-
run: |
25-
mkdir -p ./gh-pages
26-
helm package charts/* --destination ./gh-pages
27-
helm repo index ./gh-pages --url https://es6kr.github.io/nginx-cert-issuers
28-
29-
- name: Deploy to GitHub Pages
30-
uses: peaceiris/actions-gh-pages@v4
31-
with:
32-
github_token: ${{ secrets.GITHUB_TOKEN }}
33-
publish_dir: ./gh-pages
34-
publish_branch: gh-pages
14+
jobs:
15+
workflow:
16+
name: Helm Workflows
17+
uses: action-stars/helm-workflows/.github/workflows/release.yaml@0b498f1b9096b956f66f50954864e477dc3a639e # v0.8.5
18+
secrets:
19+
oci_password: ${{ secrets.GITHUB_TOKEN }}
20+
permissions:
21+
attestations: write
22+
contents: write
23+
id-token: write
24+
packages: write
25+
with:
26+
publish_oci: true

0 commit comments

Comments
 (0)