Skip to content

Commit 0263e3f

Browse files
authored
Added 'publish' Github action
1 parent 71f5b09 commit 0263e3f

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/publish.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Upload Python Package
2+
3+
on:
4+
release:
5+
types:
6+
- created
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
publish:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Set up Python
18+
uses: actions/setup-python@v3
19+
with:
20+
python-version: '3.10'
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install poetry
25+
- name: Authenticate with PyPI
26+
env:
27+
POETRY_TOKEN: ${{ secrets.PYPI_TOKEN }}
28+
run: poetry config pypi-token.pypi $POETRY_TOKEN
29+
- name: Build and Publish
30+
run: poetry publish --build

0 commit comments

Comments
 (0)