Skip to content

Commit 3139ebf

Browse files
committed
ci: Add workflow for publishing docs
1 parent e979715 commit 3139ebf

File tree

2 files changed

+32
-4
lines changed

2 files changed

+32
-4
lines changed

.github/workflows/docs.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: docs
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Configure Git Credentials
14+
run: |
15+
git config user.name github-actions[bot]
16+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
17+
- uses: actions/setup-python@v4
18+
with:
19+
python-version: 3.x
20+
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
21+
- uses: actions/cache@v3
22+
with:
23+
key: mkdocs-material-${{ env.cache_id }}
24+
path: .cache
25+
restore-keys: |
26+
mkdocs-material-
27+
- run: pip install mkdocs-material
28+
- run: mkdocs gh-deploy --force

mkdocs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
site_name: Roact Documentation
2-
site_url: https://roblox.github.io/roact-alignment/
3-
repo_name: Roblox/roact-alignment
4-
repo_url: https://github.com/Roblox/roact-alignment
1+
site_name: React Lua Documentation
2+
site_url: https://jsdotlua.github.io/react-lua/
3+
repo_name: jsdotlua/react-lua
4+
repo_url: https://github.com/jsdotlua/react-lua
55

66
theme:
77
name: material

0 commit comments

Comments
 (0)