We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66dbc5a commit 60127b8Copy full SHA for 60127b8
.github/workflows/build-and-release.yml
@@ -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
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
27
+ name: release-${{ github.event.release.id }}
28
+ path: dist/
0 commit comments