Skip to content

Commit

Permalink
Update pythonapp.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zmalkmus authored Jun 7, 2024
1 parent 84d6700 commit 64c9cb7
Showing 1 changed file with 23 additions and 12 deletions.
35 changes: 23 additions & 12 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,16 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: "3.8"
- name: Install pypa/build
run: >-
python3 -m
pip install
build
--user
- name: Install pypa/build and twine
run: python3 -m pip install build twine
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/

test:
name: Run test suite
needs:
Expand Down Expand Up @@ -54,8 +50,23 @@ jobs:
- test
runs-on: ubuntu-latest
steps:
- name: Publish Python dist to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.8"
- name: Install twine
run: pip install twine
- name: Download distribution packages
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Check dist/
run: twine check dist/*
- name: Publish Python dist to PyPI
run: twine upload dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}

0 comments on commit 64c9cb7

Please sign in to comment.