Skip to content

Commit 53f2c07

Browse files
authored
Merge pull request #24 from grycap/dev-esparig
Updated workflow to publish Pypi package using trusted publisher
2 parents 8091c41 + 0f22b9a commit 53f2c07

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/main.yaml

+7-5
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,18 @@ jobs:
1111
steps:
1212
- name: Checkout
1313
uses: actions/checkout@v2
14+
1415
- name: Set up Python
1516
uses: actions/setup-python@v2
17+
1618
- name: Install dependencies
1719
run: |
1820
python -m pip install --upgrade pip
1921
python -m pip install setuptools wheel twine
20-
- name: Build and publish
21-
env:
22-
TWINE_USERNAME: ${{ secrets.PYPI_USER }}
23-
TWINE_PASSWORD: ${{ secrets.PYPI_PASS }}
22+
23+
- name: Build package
2424
run: |
2525
python setup.py sdist bdist_wheel
26-
twine upload dist/*
26+
27+
- name: Publish package to PyPI
28+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)