-
-
Notifications
You must be signed in to change notification settings - Fork 39
40 lines (33 loc) · 1.1 KB
/
push.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
name: Push
on:
push:
branches: [ main, development ]
jobs:
push:
name: push
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 21.7.3
- name: Run Antora
run: npx antora antora-playbook.yml
- name: Copy landing page
run: |
mkdir -p $GITHUB_WORKSPACE/website/releases/latest/download
cp -rf $GITHUB_WORKSPACE/build/site/* $GITHUB_WORKSPACE/website
cp -rf $GITHUB_WORKSPACE/landing/* $GITHUB_WORKSPACE/website
cp -rf $GITHUB_WORKSPACE/VERSION $GITHUB_WORKSPACE/website/releases/latest/download
cp -rf $GITHUB_WORKSPACE/schema $GITHUB_WORKSPACE/website/schema
touch $GITHUB_WORKSPACE/website/.nojekyll
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
folder: website
branch: 'gh-pages'
commit-message: "[CI] Publish Documentation for ${{ github.sha }}"