Skip to content

Commit 2ff2ee2

Browse files
committed
Add GitHub Actions to build and publish docs
1 parent 4e7f9c0 commit 2ff2ee2

File tree

4 files changed

+956
-9
lines changed

4 files changed

+956
-9
lines changed

.github/workflows/docs.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Redpoint Games Docs
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
9+
jobs:
10+
build:
11+
name: "Build"
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
- name: Build Docs
19+
run: |
20+
yarn
21+
yarn build
22+
- name: Upload Built Docs
23+
uses: actions/upload-artifact@v4
24+
with:
25+
name: docs
26+
if-no-files-found: error
27+
path: |
28+
build/
29+
30+
publish:
31+
name: "Publish"
32+
runs-on: ubuntu-latest
33+
needs: ["build"]
34+
if: github.ref == 'refs/heads/main' && github.repository == 'RedpointGames/docs'
35+
steps:
36+
- name: Download Built Docs
37+
uses: actions/download-artifact@v4
38+
with:
39+
name: docs
40+
path: build/
41+
merge-multiple: true
42+
- name: Publish Docs
43+
run: |
44+
cp _redirects build/_redirects
45+
yarn
46+
yarn wrangler pages deploy ./build --project-name redpoint-games-docs-next --branch main

docusaurus.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ module.exports = {
5050
announcementBar: {
5151
id: "framework_migration",
5252
content:
53-
'🎉 In 2025, EOS Online Subsystem will become the EOS Online Framework. <a target="_blank" href="https://redpoint.games/blog/2025/03/consolidating-our-products/">More info &raquo;</a>',
54-
backgroundColor: "#b9fbc1",
53+
'⚠️ You are viewing pre-release documentation that does not represent the state of the product currently released on Fab. Please <a target="_blank" href="https://docs.redpoint.games/">click here</a> to view the current documentation.',
54+
backgroundColor: "rgb(255, 230, 200)",
5555
textColor: "#000",
5656
isCloseable: false,
5757
},

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"raw-loader": "^4.0.2",
5050
"ts-node": "^10.9.2",
5151
"typescript": "^5.8.3",
52-
"webpack": "^5.99.9"
52+
"webpack": "^5.99.9",
53+
"wrangler": "^4.19.1"
5354
}
5455
}

0 commit comments

Comments
 (0)