-
Notifications
You must be signed in to change notification settings - Fork 10
54 lines (47 loc) · 1.35 KB
/
pages.yaml
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
name: Pages
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-22.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: checkout
uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: "10.22.0"
- name: Build
run: |
cd ./docs
npm i gitbook-cli -g
gitbook install
gitbook build
- name: Install Helm
uses: azure/setup-helm@v3
with:
version: v3.7.0
- name: Generate Helm Charts
run: |
helm package ./charts/ops --destination ./charts/
helm repo index ./charts --merge ./charts/index.yaml --url https://www.chenshaowen.com/ops/charts
- name: Copy Helm Charts
run: |
mkdir -p ./docs/_book/charts
cp ./charts/*.tgz ./docs/_book/charts/
cp ./charts/artifacthub-repo.yml ./docs/_book/charts/
cp ./charts/index.yaml ./docs/_book/charts/
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_book
force_orphan: true
full_commit_message: ${{ github.event.head_commit.message }}