Skip to content

Commit 4dc344f

Browse files
committed
gh actions
1 parent 1c12177 commit 4dc344f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish-to-pypi.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on: push
55
jobs:
66
build-n-publish:
77
name: Build and publish package to PyPI and TestPyPI
8-
runs-on: ubuntu-18.04
8+
runs-on: ubuntu-22.04
99
steps:
1010
- uses: actions/checkout@master
1111
- name: Set up Python 3.7
@@ -27,14 +27,14 @@ jobs:
2727
--out-dir dist/
2828
.
2929
- name: Publish package to Test PyPI
30-
uses: pypa/gh-action-pypi-publish@master
30+
uses: pypa/gh-action-pypi-publish@release/v1
3131
with:
3232
password: ${{ secrets.test_pypi_token }}
3333
repository_url: https://test.pypi.org/legacy/
3434
skip_existing: true
3535
- name: Publish package to PyPI
3636
if: startsWith(github.ref, 'refs/tags')
37-
uses: pypa/gh-action-pypi-publish@master
37+
uses: pypa/gh-action-pypi-publish@release/v1
3838
with:
3939
password: ${{ secrets.pypi_token }}
4040
skip_existing: true

0 commit comments

Comments
 (0)