-
-
Notifications
You must be signed in to change notification settings - Fork 12
46 lines (40 loc) · 1.16 KB
/
deploy.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
37
38
39
40
41
42
43
44
45
46
name: Deploy
on:
push:
paths-ignore:
- '.github/ISSUE_TEMPLATE/**'
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref || github.run_id }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install mdbook
run: (test -x $HOME/.cargo/bin/mdbook || cargo install --debug --vers "^0.4" mdbook)
- name: Install static-sitemap-cli
run: npm install static-sitemap-cli
# Build tutorials-book mdbook
- name: Build tutorials-book mdbook
run: mdbook build tutorials-book -d ../gh-pages
- name: Generate tutorials-book sitemap
run: |
cd gh-pages
npx sscli --base https://www.sea-ql.org/sea-orm-tutorial
# Deploy GitHub Pages
- name: Deploy GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: gh-pages
single-commit: true
clean: true