forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (53 loc) · 1.43 KB
/
docs.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
49
50
51
52
53
54
55
56
name: Build experimental docs
on:
push:
branches:
- main
- jcannon/documentation
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
build_docs:
name: Build Experimental Docs
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
repository: thejcannon/pants
ref: jcannon/documentation
- name: Check out code
uses: actions/checkout@v3
with:
repository: thejcannon/pants
ref: main
- name: Merge docs branch
run: |
git config --global user.email "joshdcannon@gmail.com"
git config --global user.name "Joshua Cannon"
git cherry-pick thejcannon/pants
- name: Convert docs
run: |
docs/convert.sh
- name: Build docs
run: |
# Not using Pants because I wanna go Sanic fast
pip install mkdocs mkdocs-material mkdocs-redirects
mkdocs build -f docs/mkdocs.yml
mkdir -p dist/site
mv docs/site dist/site/docs
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: dist/site
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2