-
-
Notifications
You must be signed in to change notification settings - Fork 8
47 lines (47 loc) · 1.17 KB
/
release.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
jobs:
deploy-package:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
cache: pip
python-version: 3.x
- run: env | sort
- run: make dev-package
- run: make build
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
deploy-pages:
permissions:
pages: write
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
cache: pip
python-version: 3.x
- run: env | sort
- run: make dev-docs
- run: make docs
- run: make reports
- name: Upload pages artifact
uses: actions/upload-pages-artifact@v2
with:
path: public
- id: deployment
name: Deploy to GitHub Pages
uses: actions/deploy-pages@v2
name: Deploy Python Package & GitHub Pages
on:
release:
types:
- published