-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (75 loc) · 2.41 KB
/
deploy.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Deploy to GitHub Pages
on:
push:
branches:
- main
env:
NODE_OPTIONS: '--max_old_space_size=6144'
jobs:
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Execute Gradle build
run: ./gradlew build dokkaHtmlMultiModule
- name: Save graphql schemas
run: |
chmod +x ./website/scripts/generate-graphql-schema.sh
./website/scripts/generate-graphql-schema.sh
- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: npm
cache-dependency-path: "**/package-lock.json"
- name: Install login-service dependencies
run: ./gradlew login-service:npm_ci
- name: Save openapi schemas
run: |
chmod +x ./website/scripts/generate-openapi-schema.sh
./website/scripts/generate-openapi-schema.sh
- name: Modify Dokka output
uses: graphglue/[email protected]
with:
src: "build/dokka/htmlMultiModule"
modules: |
core
api-common
api-public
api-internal
sync
github
jira
dest: "website/docs"
folder: "api"
- name: Install dependencies
run: npm ci
working-directory: website
- name: Update graphql documentation
run: |
chmod +x ./website/scripts/update-graphql-doc.sh
./website/scripts/update-graphql-doc.sh
- name: Update rest documentation
run: |
chmod +x ./website/scripts/update-rest-doc.sh
./website/scripts/update-rest-doc.sh
- name: Build website
run: npm run build
working-directory: website
# Popular action to deploy to GitHub Pages:
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
# Build output to publish to the `gh-pages` branch:
publish_dir: ./website/build
force_orphan: true
external_repository: ccims/gropius-backend-docs
publish_branch: main