-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (38 loc) · 1.02 KB
/
deploy.yaml
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
47
48
# https://github.com/rust-lang/mdBook/wiki/Automated-Deployment%3A-GitHub-Actions#github-pages-deploy
name: Render
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
render:
runs-on: ubuntu-latest
permissions:
contents: write # To push a branch
pull-requests: write # To create a PR from that branch
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Python dependencies
uses: py-actions/py-dependency-install@v4
with:
path: "requirements.txt"
- name: make docs and cname
run: |
make html
echo 'docs.urbananalyst.city' > _build/html/CNAME
- name: Upload artifaces
uses: actions/upload-artifact@v4
with:
name: html-docs
path: _build/html/
- name: Deploy GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/html