-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (70 loc) · 2.13 KB
/
deploy-website.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
name: Deploy to GitHub Pages
on:
push:
branches:
- main
pull_request:
env:
NODE_OPTIONS: '--max_old_space_size=6144'
jobs:
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- 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
working-directory: gropius-backend
- name: Save graphql schemas
run: ./website/scripts/generate-graphql-schema.sh
- uses: actions/setup-node@v3
with:
node-version: 21.x
cache: npm
cache-dependency-path: "**/package-lock.json"
- name: Install login-service dependencies
run: npm ci
working-directory: gropius-login-service/backend
- name: Save openapi schemas
run: ./website/scripts/generate-openapi-schema.sh
- name: Modify Dokka output
uses: graphglue/[email protected]
with:
src: "gropius-backend/build/dokka/htmlMultiModule"
modules: |
core
api-common
api-public
api-internal
sync
sync-github
sync-jira
dest: "website/docs"
folder: "api"
- name: Install dependencies
run: npm ci
working-directory: website
- name: Update graphql documentation
run: ./website/scripts/update-graphql-doc.sh
- name: Update rest documentation
run: ./website/scripts/update-rest-doc.sh
- name: Build website
run: npm run build
working-directory: website
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/main'
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./website/build
force_orphan: true
external_repository: ccims/gropius-docs
publish_branch: main