-
Notifications
You must be signed in to change notification settings - Fork 81
41 lines (35 loc) · 1.08 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
name: Publish docs via GitHub Pages
on:
push:
branches:
# Remember to add v before the following version number unless the version is master.
- v3.6.0
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # fetch all commits/branches for gitversion
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: '3.8'
architecture: 'x64'
- name : prepare
run: sh ./prepare.sh
- name: Git Config
run: git config user.name whitewum && git config user.email [email protected]
- name: Mike Deploy 3.6.0
run: |
# mike delete 3.6.0 -p
git fetch origin gh-pages --depth=1 # fix mike's CI update
mike list
mike deploy 3.6.0 -p --rebase
mike set-default 3.6.0 -p --rebase
mike list
# - name: Deploy
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.DEPLOY_TOKEN }}
# publish_dir: ./site