Skip to content

Commit

Permalink
fixe github action workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
oshribr committed Nov 3, 2024
1 parent 4c73058 commit 6808b77
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 181 deletions.
131 changes: 0 additions & 131 deletions .github/actions/generate-helm-html-index/action.yaml

This file was deleted.

34 changes: 27 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:
contents: write # to push chart release and create a release (helm/chart-releaser-action)

runs-on: ubuntu-latest
outputs:
changed_charts: ${{ steps.chart-releaser.outputs.changed_charts }}

steps:
- name: Checkout Code
uses: actions/checkout@v4
Expand All @@ -28,6 +31,7 @@ jobs:

- name: Run chart-releaser
uses: helm/[email protected]
id: chart-releaser
env:
CR_TOKEN: "${{ github.token }}"

Expand All @@ -37,18 +41,13 @@ jobs:
contents: write # Needed to commit the generated file
needs:
- release
if: needs.release.outputs.changed_charts != ''
steps:
- uses: actions/checkout@v4
with:
ref: gh-pages
fetch-depth: 0

- name: debug-print
run: |
echo "Current directory is $(pwd)"
echo "Contents of the directory are $(ls -la)"
echo "Contents of the directory are $(ls -la /home/runner/work/helm-release/helm-release/)"
- name: Generate Helm Charts HTML
uses: ./.github/actions/generate-helm-html-index
with:
Expand All @@ -61,4 +60,25 @@ jobs:
git config --local user.name "GitHub Action"
git add index.html
git commit -m "Update Helm charts page" || exit 0 # Don't fail if no changes
git push
git push
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs:
- generate-page
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: '.'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
43 changes: 0 additions & 43 deletions .github/workflows/static.yml

This file was deleted.

0 comments on commit 6808b77

Please sign in to comment.