-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (34 loc) · 949 Bytes
/
release.yml
File metadata and controls
36 lines (34 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Release Python Package to PyPI
on:
release:
types: [published]
jobs:
deploy:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Setup
run: pip install poetry poetry-dynamic-versioning
- name: Config
run: poetry config repositories.pypi https://upload.pypi.org/legacy/
- name: Build
run: |
poetry install
poetry build
- name: Publish
run: poetry publish -r pypi -u __token__ -p ${{ secrets.PYPI_TOKEN }}
test:
runs-on: ubuntu-24.04
needs: deploy
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Setup
run: pip install poetry poetry-dynamic-versioning
- name: Install
run: pip install onnx-passes==$(poetry version -s)