feat: adding controlflow priority property healthcheck (#124) #172
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
name: Helm publish on new commit on main branch | |
on: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
chart-publish-on-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: main Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
path: georchestra | |
- name: gh-pages Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
ref: 'gh-pages' | |
path: gh-pages | |
- name: Helm Installation | |
uses: azure/setup-helm@v3 | |
- name: Run script file | |
run: | | |
rm -rf georchestra/.git | |
shell: bash | |
- name: Helm Package | |
run: | | |
cd georchestra && helm dependency update && cd .. | |
helm package georchestra -d gh-pages --version $(helm show chart georchestra |grep ^version: | awk '{print $2}')-"$GITHUB_REF_NAME"-"${GITHUB_SHA::7}" | |
cd gh-pages | |
find . -type f -mtime +180 -delete | |
helm repo index . --merge index.yaml | |
- name: Deploy to GitHub Pages | |
uses: crazy-max/ghaction-github-pages@v3 | |
with: | |
target_branch: gh-pages | |
build_dir: gh-pages | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |