Skip to content

Commit 7e56444

Browse files
tweak publishing
1 parent 5f07c1d commit 7e56444

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/python-publish.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,23 @@ jobs:
2525

2626
steps:
2727
- uses: actions/checkout@v4
28+
with:
29+
ref: ${{ github.event.workflow_run.head_branch }}
30+
2831
- name: Set up Python
29-
uses: actions/setup-python@v3
32+
uses: actions/setup-python@v5
3033
with:
3134
python-version: '3.11'
32-
- name: Install dependencies
35+
36+
- name: Build
3337
run: |
3438
python -m pip install --upgrade pip
3539
pip install build
36-
- name: Build package
37-
run: python -m build
40+
python -m build
41+
3842
- name: Publish package
39-
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
43+
uses: pypa/gh-action-pypi-publish@release/v1
4044
with:
4145
user: __token__
4246
password: ${{ secrets.PYPI_API_TOKEN }}
43-
skip-existing: true
44-
verbose: true
47+
verbose: true

0 commit comments

Comments
 (0)