Skip to content

Commit

Permalink
Create helm-copy-tgz.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kw1knode authored Mar 14, 2024
1 parent 64d4c9c commit f6172b8
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/helm-copy-tgz.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release Charts

on:
push:
branches:
- main

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout main branch
uses: actions/checkout@v3
with:
ref: 'main' # Checkout main branch to get the latest changes

- name: Download latest release assets
id: download_assets
run: |
ASSET_URL=$(curl -s https://api.github.com/repos/${GITHUB_REPOSITORY}/releases/latest | jq -r '.assets[] | select(.name | endswith(".tgz")).browser_download_url')
wget $ASSET_URL -O latest_release.tgz
- name: Copy .tgz file to gh-pages branch
run: |
cp latest_release.tgz ./helm-charts/
- name: Commit and push changes to gh-pages branch
uses: EndBug/add-and-commit@v7
with:
add: 'helm-charts/latest_release.tgz'
message: 'Update charts'
branch: 'gh-pages'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f6172b8

Please sign in to comment.