-
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
Showing
1 changed file
with
31 additions
and
15 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 |
---|---|---|
|
@@ -17,6 +17,16 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
path: 'src' | ||
fetch-depth: 0 | ||
|
||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
path: 'dest' | ||
ref: 'gh-pages' | ||
fetch-depth: 0 | ||
|
||
- name: Install Helm | ||
uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5 | ||
|
@@ -32,24 +42,30 @@ jobs: | |
helm lint --values values.yaml . | ||
cd - | ||
# - name: Package helm chart | ||
# run: | | ||
# mkdir -p .cr-release-packages | ||
# cd .cr-release-packages | ||
# helm package --version ${{env.VERSION_NAME}} ../charts/public-test/ | ||
# cd - | ||
- name: Package helm chart | ||
run: | | ||
cd charts | ||
helm package --version 1.0.${{ github.run_number }} public-test/ -u -d dest | ||
cd - | ||
- name: Configure Git user | ||
- name: Push New Files | ||
shell: bash | ||
working-directory: dest | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "github-actions" | ||
helm repo index . --url https://raw.githubusercontent.com/comet-ml/public-test/gh-pages/ | ||
git config user.name "Helm Updater" | ||
git config user.email "[email protected]" | ||
git add $(git ls-files -o --exclude-standard) | ||
git add index.yaml | ||
git commit -m "Updated from ref: $GITHUB_SHA" | ||
git push | ||
- name: Run chart-releaser | ||
uses: helm/chart-releaser-action@be16258da8010256c6e82849661221415f031968 # v1.5.0 | ||
with: | ||
charts_dir: charts | ||
env: | ||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
# - name: Run chart-releaser | ||
# uses: helm/chart-releaser-action@be16258da8010256c6e82849661221415f031968 # v1.5.0 | ||
# with: | ||
# charts_dir: charts | ||
# env: | ||
# CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
|
||
# - name: Run chart-releaser | ||
# uses: helm/[email protected] | ||
|