-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 917 Bytes
/
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
name: release
on:
push:
tags:
- v*
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
with:
python-version: "3.9"
- uses: abatilo/actions-poetry@v2
- run: git fetch origin gh-pages --depth=1
- run: poetry install --with docs
- run: |
GIT_COMMITTER_NAME=actions \
GIT_COMMITTER_EMAIL=actions@github.com \
poetry run mike deploy ${{ github.ref_name }} stable -u -p
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python_version }}
- uses: abatilo/actions-poetry@v2
- run: poetry build
- run: poetry publish --dry-run
- env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPITOKEN }}
run: poetry publish