-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (41 loc) · 1.17 KB
/
pymagwell-docs-pages.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
name: pymagewell-docs-pages
on:
push:
tags:
- '*'
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .[doc]
- name: Create doc pages and commit to docs branch
run: |
git config --local user.name "crnbaker"
git config --local user.email "[email protected]"
git fetch
git status
git checkout ${{ github.ref_name }}
git branch ${{ github.ref_name }}-branch
git checkout docs
git status
git rebase ${{ github.ref_name }}-branch
export PYMAGEWELL_VERSION=${{ github.ref_name }}
source generate_docs.sh
git add .
git commit --allow-empty -m 'Automatic documentation update ${{ github.ref_name }}'
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: docs
force: true