-
Notifications
You must be signed in to change notification settings - Fork 115
55 lines (46 loc) · 1.32 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
47
48
49
50
51
52
53
54
55
name: Build & deploy mpf-docs to missionpinball.org
on:
push:
branches:
- main
permissions:
contents: write
id-token: write
pages: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Configure GitHub Pages
uses: actions/configure-pages@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Generate project showcase pages from .yaml files
run: python build_tools/generate_showcase_pages.py
- name: Build and deploy site
#run: mkdocs gh-deploy --force
run: |
git config user.name "mike-ci-bot"
git config user.email "[email protected]"
git fetch
git checkout gh-pages
git pull
git checkout main
mike deploy 0.57 latest
mike set-default latest
- name: Upload Artifact
uses: actions/upload-pages-artifact@v2
with:
# upload entire directory
path: 'site'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2