-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (35 loc) · 906 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
37
38
name: Release
on:
workflow_dispatch:
inputs:
version:
description: set release version
required: true
permissions:
contents: write
jobs:
pypi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.11.8"
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python - -y
poetry source add pypi
- name: build docs
run: |
poetry install --with docs
python3 docs/build.py
- name: Deploy docs
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: docs/_build/html
- name: Publish
run: |
poetry version ${{ github.event.inputs.version }}
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
poetry build && poetry publish