forked from GaloyMoney/blink
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.06 KB
/
generate-graphql-docs.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
name: "Generate GraphQL Docs"
concurrency: ${{ github.workflow }}
on:
push:
branches: [ main ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
path: main
- uses: actions/checkout@v2
with:
ref: docs
path: docs
- uses: actions/setup-node@v2
- run: yarn install
working-directory: main
- uses: vmware-tanzu/carvel-setup-action@v1
with:
only: ytt
- run: ytt -f spectaql/TUTORIAL.md -f spectaql/spectaql-config-template.yml > spectaql-config.yml
working-directory: main
- name: Build docs
run: yarn run build-docs
working-directory: main
- run: cp main/public/index.html docs
- run: cp main/public/logo.png docs/images
- name: Deploy docs
working-directory: docs
run: |
git config --local user.name 'github-actions[bot]'
git config --local user.email 'github-actions[bot]@users.noreply.github.com'
git add .
git commit -m "Update docs: $GITHUB_SHA"
git push