Skip to content

Commit a56c301

Browse files
authored
polish publish workflow (#81)
1 parent 1801094 commit a56c301

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

.github/workflows/python-publish.yml

+18-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,29 @@
1-
name: Publish Python Package
1+
# This workflow will upload a Python Package using Twine when a release is created
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3+
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
9+
name: Upload Python Package
210

311
on:
412
release:
5-
types: [created]
13+
types: [published]
14+
15+
permissions:
16+
contents: read
617

718
jobs:
819
deploy:
20+
921
runs-on: ubuntu-latest
22+
1023
steps:
11-
- uses: actions/checkout@v2
24+
- uses: actions/checkout@v4
1225
- name: Set up Python
13-
uses: actions/setup-python@v2
26+
uses: actions/setup-python@v3
1427
with:
1528
python-version: '3.x'
1629
- name: Install dependencies
@@ -23,4 +36,4 @@ jobs:
2336
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
2437
with:
2538
user: __token__
26-
password: ${{ secrets.PYPI_API_TOKEN }}
39+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)