Skip to content

Commit

Permalink
publish
Browse files Browse the repository at this point in the history
  • Loading branch information
liyaka committed Aug 27, 2024
1 parent 850728d commit 20ccbad
Showing 1 changed file with 31 additions and 15 deletions.
46 changes: 31 additions & 15 deletions .github/workflows/publish_chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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]
Expand Down

0 comments on commit 20ccbad

Please sign in to comment.