Skip to content

Commit 05989de

Browse files
committed
Add a release workflow
1 parent e382df0 commit 05989de

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Publish Package
2+
3+
on:
4+
release:
5+
types: [released]
6+
7+
jobs:
8+
build:
9+
env:
10+
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
11+
PYPI_USERNAME: "__token__"
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Set up Python
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: "3.10"
21+
22+
- name: Install Poetry
23+
uses: snok/install-poetry@v1
24+
25+
- name: Install Dependencies
26+
run: poetry install
27+
28+
- name: Build Package
29+
run: poetry build
30+
31+
- name: Publish Package
32+
run: poetry publish -u $PYPI_USERNAME -p $PYPI_TOKEN

0 commit comments

Comments
 (0)