Skip to content

Commit 309701f

Browse files
committed
add release pipeline
1 parent 996bd40 commit 309701f

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/release.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Release
2+
on:
3+
workflow_dispatch: # This is a manual trigger
4+
release:
5+
types:
6+
- created
7+
8+
jobs:
9+
publish:
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
python-version: ["3.12"]
14+
poetry-version: ["1.8.3"]
15+
os: [ubuntu-latest]
16+
runs-on: ${{ matrix.os }}
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: actions/setup-python@v5
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- name: Run image
23+
uses: abatilo/actions-poetry@v3
24+
with:
25+
poetry-version: ${{ matrix.poetry-version }}
26+
- name: Publish
27+
env:
28+
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
29+
working-directory: field-manager-python-client
30+
run: |
31+
poetry config pypi-token.pypi $PYPI_TOKEN
32+
poetry publish --build

0 commit comments

Comments
 (0)