-
Notifications
You must be signed in to change notification settings - Fork 247
39 lines (32 loc) · 1001 Bytes
/
gh-pages.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
name: gh-pages
on:
push:
branches:
- master
- release-*
tags:
- v[0-9]+.[0-9]+.[0-9]+
concurrency:
group: gh-pages
jobs:
update-docs:
name: Update gh-pages documentation
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
sudo apt-get install -y jq curl
curl -sfL https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash -s -- --version v3.5.2
- name: Check out repo
uses: actions/checkout@v1
with:
fetch-depth: 0
- name: Fetch gh-pages branch
run: git fetch --no-tags --prune --depth=1 origin refs/heads/gh-pages:refs/heads/gh-pages
- name: Build site
run: |
git config user.name "Github Actions"
git config user.email "no-reply@github.com"
./scripts/github/update-gh-pages.sh
- name: Deploy site
run: git push -f https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} gh-pages