Skip to content

Commit 60127b8

Browse files
Add a workflow to build wheels and upload to PyPI when a release is created.
1 parent 66dbc5a commit 60127b8

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Build and publish package
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-22.04
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-python@v5
12+
with:
13+
python-version: "3.10"
14+
- name: Setup Poetry
15+
uses: abatilo/actions-poetry@v3
16+
with:
17+
poetry-version: "latest"
18+
19+
- name: Build and publish to PYPI.
20+
env:
21+
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.ARACHNID_SHIELD_SDK_PYPI_TOKEN }}
22+
run: |
23+
poetry publish --build --repository pypi
24+
- name: Save built package.
25+
uses: actions/upload-artifact@v2
26+
with:
27+
name: release-${{ github.event.release.id }}
28+
path: dist/

0 commit comments

Comments
 (0)