-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (33 loc) · 937 Bytes
/
deploy_page.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
name: Deploy github pages
on:
push:
branches:
- master
permissions:
contents: write
jobs:
deploy_page:
name: Deploy Github page
runs-on: ubuntu-latest
env:
MAKE_FEATURES_FLAG: "--all-features"
steps:
- uses: actions/checkout@v4
- name: Setup rust toolchain
uses: dtolnay/rust-toolchain@nightly
- name: Install cargo make
uses: davidB/rust-cargo-make@v1
- name: Create env file
uses: iamsauravsharma/[email protected]
with:
input-prefix: "MAKE_"
- name: Generate documentation
run: |
cargo make --env-file=.env rustdoc
- name: Generate index page
run: |
echo "<meta http-equiv=refresh content=0;url=sqlx_migrator/index.html>" > target/doc/index.html
- name: Deploy GitHub Page
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: target/doc