-
Notifications
You must be signed in to change notification settings - Fork 3
32 lines (29 loc) · 835 Bytes
/
static.yml
File metadata and controls
32 lines (29 loc) · 835 Bytes
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
name: ci
on:
push:
branches:
- main
permissions:
contents: write
env:
CURRENT_VERSION: "0.1"
PRODUCTION: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: git fetch origin gh-pages --depth=1
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: sudo apt install doxygen
- run: pip install -r requirements.txt
- run: git config user.name ci-bot
- run: git config user.email ci-bot@example.com
- run: ./build.sh
- run: mike delete -b gh-pages $CURRENT_VERSION
continue-on-error: true
- run: mike deploy -b gh-pages $CURRENT_VERSION
- run: mike set-default -b gh-pages $CURRENT_VERSION
- run: mike deploy -b gh-pages --push --update-aliases $CURRENT_VERSION latest