-
-
Notifications
You must be signed in to change notification settings - Fork 14
46 lines (35 loc) · 986 Bytes
/
publish.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
name: Publish
on:
release:
types:
- created
#pull_request: # test-only
#branches: [ main, feature/* ] # test-only
jobs:
publish:
runs-on: ubuntu-latest
environment:
name: release
#name: test-release # test-only
url: https://pypi.org/p/pyfuzzylite
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install requirements
run: pip install -r requirements-dev.txt
- name: Build
run: poetry build
- name: Publish
uses: pypa/gh-action-pypi-publish@v1.12.4
#with:
# repository-url: https://test.pypi.org/legacy/ # test-only
- name: Install development dependencies for documentation
run: poetry install --only dev
- name: Publish documentation
run: nox -e docs -- publish