Merge pull request #234 from opendatacube/feature/add-alb-class-name #80
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: Publish charts | |
on: | |
push: | |
paths: | |
- "stable/**" | |
branches: | |
- "master" | |
env: | |
REPO : "https://opendatacube.github.io/datacube-charts/charts" | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Install Helm | |
uses: azure/setup-helm@v1 | |
with: | |
version: v3.4.0 | |
- name: Package charts into a tarball | |
run: | | |
git remote set-branches --add origin gh-pages | |
git checkout origin/gh-pages -- charts/ | |
bash deploy-charts.sh $REPO stable | |
- name: Publish charts to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./charts | |
publish_branch: gh-pages | |
destination_dir: ./charts | |
keep_files: true | |
enable_jekyll: true | |
commit_message: "deployed charts for" | |
- name: Checkout the gh-pages branch | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
ref: gh-pages | |
- name: update latest _data/versions file from charts | |
run: | | |
cp ./charts/index.yaml _data/versions.yaml | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add _data/versions.yaml | |
git commit -m "updated versions file" | |
git push |