Skip to content

Commit 6e594ca

Browse files
committed
Add workflow
1 parent 24faa07 commit 6e594ca

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/workflows/bevy_mod_scripting.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
- '.github/workflows/release-plz.yml'
99
- '.github/workflows/bevy_api_gen.yml'
1010
- '.github/workflows/macro_tests.yml'
11+
- 'docs/**'
1112

1213

1314
name: Check and Lint - bevy_mod_scripting

.github/workflows/mdbook.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Deploy mdBook to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- "**"
7+
paths:
8+
- 'docs/**'
9+
10+
jobs:
11+
12+
build:
13+
name: Build Book - mdbook
14+
runs-on: ubuntu-latest
15+
env:
16+
working-directory: docs/src
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
21+
- uses: actions-rs/toolchain@v1
22+
with:
23+
toolchain: stable
24+
components: mdbook
25+
override: true
26+
27+
- name: Build the book
28+
run: mdbook build
29+
30+
- name: Deploy to GitHub Pages
31+
if: github.ref == 'refs/heads/main'
32+
uses: peaceiris/actions-gh-pages@v3
33+
with:
34+
github_token: ${{ secrets.GITHUB_TOKEN }}
35+
publish_dir: book

0 commit comments

Comments
 (0)