Skip to content

Commit df7b655

Browse files
committed
update gh release action
1 parent 4e4ae50 commit df7b655

File tree

1 file changed

+6
-25
lines changed

1 file changed

+6
-25
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,12 @@ on:
33
release:
44
types: [created]
55
jobs:
6-
build-n-publish:
7-
name: Build and publish Python 🐍 distributions 📦 to PyPI
6+
build:
87
runs-on: ubuntu-latest
98
steps:
10-
- uses: actions/checkout@v2
11-
- name: Set up Python 3.9
12-
uses: actions/setup-python@v2
9+
- uses: actions/checkout@v4
10+
- name: Build and publish to pypi
11+
uses: JRubics/poetry-publish@v2.0
1312
with:
14-
python-version: 3.9
15-
- name: Install pypa/build
16-
run: >-
17-
python -m
18-
pip install
19-
build
20-
--user
21-
- name: Build a binary wheel and a source tarball
22-
run: >-
23-
python -m
24-
build
25-
--sdist
26-
--wheel
27-
--outdir dist/
28-
.
29-
- name: Publish distribution 📦 to PyPI
30-
if: startsWith(github.ref, 'refs/tags')
31-
uses: pypa/gh-action-pypi-publish@master
32-
with:
33-
password: ${{ secrets.PYPI_API_TOKEN }}
13+
python_version: "3.9.17"
14+
pypi_token: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)