Skip to content

Commit 6233803

Browse files
committed
Update GitHub Actions workflow to use latest Ubuntu and action versions
1 parent 4389606 commit 6233803

1 file changed

Lines changed: 9 additions & 12 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,31 @@ on: push
44
jobs:
55
build-n-publish:
66
name: Build and publish packages to PyPI and TestPyPI
7-
runs-on: ubuntu-18.04
7+
runs-on: ubuntu-latest
88

99
steps:
10-
- name: Checkout
11-
uses: actions/checkout@v2.3.1
10+
- name: checkout
11+
uses: actions/checkout@v3
1212
with:
1313
persist-credentials: false
1414
fetch-depth: 0
1515

16-
- name: Setup Python
17-
uses: actions/setup-python@v2
16+
- name: setup python
17+
uses: actions/setup-python@v4
1818
with:
1919
python-version: 3.9
2020

21-
- name: Install python packages
22-
run: pip install setuptools
23-
24-
- name: Build package
25-
run: python setup.py sdist
21+
- name: build package
22+
run: pipx run build
2623

2724
- name: Publish to test PyPI
28-
uses: pypa/gh-action-pypi-publish@master
25+
uses: pypa/gh-action-pypi-publish@release/v1
2926
with:
3027
password: ${{ secrets.test_pypi_password }}
3128
repository_url: https://test.pypi.org/legacy/
3229

3330
- name: Publish to tagged release to PyPI
3431
if: startsWith(github.ref, 'refs/tags')
35-
uses: pypa/gh-action-pypi-publish@master
32+
uses: pypa/gh-action-pypi-publish@release/v1
3633
with:
3734
password: ${{ secrets.pypi_password }}

0 commit comments

Comments
 (0)