forked from opendatacube/datacube-charts
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (48 loc) · 1.35 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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