Skip to content

Commit 6808b77

Browse files
committed
fixe github action workflow
1 parent 4c73058 commit 6808b77

File tree

3 files changed

+27
-181
lines changed

3 files changed

+27
-181
lines changed

.github/actions/generate-helm-html-index/action.yaml

Lines changed: 0 additions & 131 deletions
This file was deleted.

.github/workflows/release.yaml

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ jobs:
1111
contents: write # to push chart release and create a release (helm/chart-releaser-action)
1212

1313
runs-on: ubuntu-latest
14+
outputs:
15+
changed_charts: ${{ steps.chart-releaser.outputs.changed_charts }}
16+
1417
steps:
1518
- name: Checkout Code
1619
uses: actions/checkout@v4
@@ -28,6 +31,7 @@ jobs:
2831

2932
- name: Run chart-releaser
3033
uses: helm/chart-releaser-action@v1.6.0
34+
id: chart-releaser
3135
env:
3236
CR_TOKEN: "${{ github.token }}"
3337

@@ -37,18 +41,13 @@ jobs:
3741
contents: write # Needed to commit the generated file
3842
needs:
3943
- release
44+
if: needs.release.outputs.changed_charts != ''
4045
steps:
4146
- uses: actions/checkout@v4
4247
with:
4348
ref: gh-pages
4449
fetch-depth: 0
4550

46-
- name: debug-print
47-
run: |
48-
echo "Current directory is $(pwd)"
49-
echo "Contents of the directory are $(ls -la)"
50-
echo "Contents of the directory are $(ls -la /home/runner/work/helm-release/helm-release/)"
51-
5251
- name: Generate Helm Charts HTML
5352
uses: ./.github/actions/generate-helm-html-index
5453
with:
@@ -61,4 +60,25 @@ jobs:
6160
git config --local user.name "GitHub Action"
6261
git add index.html
6362
git commit -m "Update Helm charts page" || exit 0 # Don't fail if no changes
64-
git push
63+
git push
64+
65+
deploy:
66+
environment:
67+
name: github-pages
68+
url: ${{ steps.deployment.outputs.page_url }}
69+
runs-on: ubuntu-latest
70+
needs:
71+
- generate-page
72+
steps:
73+
- name: Checkout
74+
uses: actions/checkout@v4
75+
- name: Setup Pages
76+
uses: actions/configure-pages@v5
77+
- name: Upload artifact
78+
uses: actions/upload-pages-artifact@v3
79+
with:
80+
# Upload entire repository
81+
path: '.'
82+
- name: Deploy to GitHub Pages
83+
id: deployment
84+
uses: actions/deploy-pages@v4

.github/workflows/static.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)