-
Notifications
You must be signed in to change notification settings - Fork 44
57 lines (46 loc) · 1.24 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
56
57
name: Update documentation
on:
push:
branches:
- main
paths:
- ".github/workflows/**"
- "./covsirphy/__version__.py"
- "docs/**"
workflow_dispatch:
jobs:
cancel:
name: cancel previous runs
runs-on: ubuntu-latest
steps:
- uses: styfle/cancel-workflow-action@0.11.0
with:
all_but_latest: true
access_token: ${{ github.token }}
docs:
name: update documentation with Sphinx
runs-on: ubuntu-latest
steps:
- name: check out repository
uses: actions/checkout@v3
- name: set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: install dependencies
run: poetry install --no-interaction --with docs
- name: create html files with "make docs" command
run: make docs
- name: Git add & commit
uses: EndBug/add-and-commit@v9
with:
add: "."
default_author: github_actor
message: "update documentation with Sphinx"
push: true