Skip to content

Commit f20a224

Browse files
author
Joao Felipe Rocha
committed
Correcting deploy action on github
1 parent bae5610 commit f20a224

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

.github/workflows/deploy.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,26 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@master
17+
- uses: actions/checkout@v4
1818

19-
- name: Set up Python 3.11
20-
uses: actions/setup-python@v2
19+
- name: Set up Python 3.12
20+
uses: actions/setup-python@v4
2121
with:
22-
python-version: 3.11
22+
python-version: '3.12'
2323

2424
- name: Install pypa/build
25-
run: |
26-
cd Python
25+
run: >-
2726
python -m pip install build --user
28-
cd ..
27+
2928
3029
- name: Build a binary wheel and a source tarball
31-
run: |
32-
cd Python
33-
python -m build --sdist --wheel --outdir ../dist/ .
34-
cd ..
30+
run: >-
31+
python -m
32+
build
33+
--sdist
34+
--wheel
35+
--outdir dist/
36+
.
3537
3638
# - name: Publish distribution 📦 to Test PyPI
3739
# uses: pypa/gh-action-pypi-publish@master
@@ -42,7 +44,7 @@ jobs:
4244

4345
- name: Publish distribution 📦 to PyPI
4446
if: startsWith(github.ref, 'refs/tags')
45-
uses: pypa/gh-action-pypi-publish@master
47+
uses: pypa/gh-action-pypi-publish@release/v1
4648
with:
4749
skip_existing: true
4850
password: ${{ secrets.pypi_password }}

0 commit comments

Comments
 (0)