Skip to content

Commit

Permalink
build: publish-python action (#24)
Browse files Browse the repository at this point in the history
* build: move to .toml

* build: remove setup.py

* build: python-publish.yaml
  • Loading branch information
callegarimattia authored Jan 15, 2024
1 parent 883208b commit 4203182
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflows will upload a Python Package using twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

name: Upload Python Package

on:
Expand All @@ -11,6 +8,9 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: deploy
url: https://pypi.org/p/hotpdf
steps:
- uses: actions/checkout@v4
- name: Set up Python
Expand All @@ -22,9 +22,6 @@ jobs:
python -m pip install --upgrade pip
python3 -m pip install --upgrade setuptools wheel twine build
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python -m build
twine upload dist/*

0 comments on commit 4203182

Please sign in to comment.