Skip to content

Commit 58d2bc5

Browse files
authored
Create release.py
1 parent 91164f1 commit 58d2bc5

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/release.py

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: publish new version to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
max-parallel: 1
12+
matrix:
13+
package: ["test_validation"]
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: actions/setup-python@v5
19+
with:
20+
python-version: 3.11
21+
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install setuptools setuptools_scm wheel
26+
27+
- name: Build packages
28+
run: python setup.py sdist bdist_wheel
29+
30+
- name: Publish package
31+
uses: pypa/gh-action-pypi-publish@master
32+
with:
33+
user: __token__
34+
password: ${{ secrets.PYPI_API_TOKEN }}
35+
packages_dir: dist/

0 commit comments

Comments
 (0)