-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
34087c0
commit a923a69
Showing
1 changed file
with
2 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,9 @@ | ||
name: Helm package and push to Github Pages | ||
on: | ||
# publish on releases, e.g. v2.1.13 (image tagged as "2.1.13" - "v" prefix is removed) | ||
# release: | ||
# types: [ published ] | ||
|
||
push: | ||
tags: | ||
- "v*.*.*" | ||
|
||
# branches: | ||
# - 'main' | ||
# paths: | ||
# - 'helm-chart/**' | ||
# - '.github/workflows/helm-package-and-publish.yaml' | ||
|
||
# TODO: | ||
# - package helm | ||
# - upload release artifact | ||
# - get its url | ||
# - update/merge gh-pages/index.yaml | ||
|
||
|
||
jobs: | ||
helm-package-and-push-to-ghcr-io: | ||
runs-on: ubuntu-latest | ||
|
@@ -29,15 +12,13 @@ jobs: | |
packages: write | ||
|
||
steps: | ||
|
||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Helm | ||
uses: azure/[email protected] | ||
|
||
- name: Helm Package and Push to ghcr.io | ||
- name: Helm Package | ||
id: helm_package | ||
run: | | ||
echo "Tag version: $GITHUB_REF" | ||
|
@@ -60,7 +41,7 @@ jobs: | |
env: | ||
MESSAGE: ${{ steps.helm_package.outputs.package-name}} | ||
|
||
- name: Release | ||
- name: Create new Release and upload helm artifact | ||
id: create_release_and_upload_artifacts | ||
uses: softprops/[email protected] | ||
if: startsWith(github.ref, 'refs/tags/') | ||
|
@@ -96,7 +77,6 @@ jobs: | |
run: | | ||
echo 'package-name=${{ steps.helm_package_download_url.outputs.download_url}}' | ||
- name: Clone gh-pages branch and update helm index.yaml on github pages | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GHCR_TOKEN }} | ||
|