-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (35 loc) · 988 Bytes
/
build.yml
File metadata and controls
47 lines (35 loc) · 988 Bytes
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
name: Publish Website
on:
push:
branches: [ master ]
schedule:
- cron: "0 */12 * * *" # Run every 12 hours
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '16.x'
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Checkout documentation
run: npm run clone-docs
- name: Build project
run: npm run build
- name: Create 404 page
run: cp ./dist/index.html ./dist/404.html
- name: Deploy website
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
force_orphan: true
user_name: 'upbge[bot]'
user_email: 'upbge[bot]@users.noreply.github.com'