Skip to content

Commit c1bf859

Browse files
committed
Fix pypi workflow (increae ubuntu version)
1 parent 2169cf5 commit c1bf859

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/pypi.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ on:
88
jobs:
99
build-n-publish:
1010
name: Build and publish to PyPI and TestPyPI
11-
runs-on: ubuntu-18.04
11+
runs-on: ubuntu-20.04
1212
steps:
13-
- uses: actions/checkout@master
13+
- uses: actions/checkout@main
1414
- name: Set up Python 3.7
1515
uses: actions/setup-python@v1
1616
with:
@@ -26,14 +26,14 @@ jobs:
2626
python setup.py sdist
2727
2828
- name: Publish distribution to Test PyPI
29-
uses: pypa/gh-action-pypi-publish@master
29+
uses: pypa/gh-action-pypi-publish@release/v1
3030
with:
3131
user: __token__
3232
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
3333
repository_url: https://test.pypi.org/legacy/
3434
- name: Publish distribution to PyPI
3535
if: startsWith(github.ref, 'refs/tags')
36-
uses: pypa/gh-action-pypi-publish@master
36+
uses: pypa/gh-action-pypi-publish@release/v1
3737
with:
3838
user: __token__
3939
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)