Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update publish-helm.yml #22

Merged
merged 2 commits into from
Sep 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 18 additions & 11 deletions .github/workflows/publish-helm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ jobs:
id-token: write
environment:
name: github-pages
url: ${{ steps.publish-index.outputs.page_url }}

steps:
- name: Checkout repository
Expand Down Expand Up @@ -113,7 +112,24 @@ jobs:
git add index.yaml
git commit -m "Release ${{ needs.create_release_tag.outputs.tag }}"
git push


- name: Checkout repository
uses: actions/checkout@v3
with:
ref: website
path: website
token: ${{ secrets.WORKFLOW_USER_TOKEN }}

- name: Copy index.yaml to website branch
run: |
cat index/index.yaml > website/static/index.yaml
cd website
git config user.name "${{ vars.WORKFLOW_USER_NAME }}"
git config user.email "${{ vars.WORKFLOW_USER_EMAIL }}"
git add .
git commit -m "Add index.yaml to website"
git push

- name: Upload package
run: |
upload_url="${{ needs.create_release_tag.outputs.upload_url }}"
Expand All @@ -129,15 +145,6 @@ jobs:
--data-binary @$file \
"$upload_url?name=$(basename $file)"

- name: Upload index
uses: actions/upload-pages-artifact@v2
with:
path: index

- name: Publish index
id: publish-index
uses: actions/deploy-pages@v2

publish-to-packages:
name: Publish chart to github packages
needs: create_release_tag
Expand Down
Loading