Skip to content

Commit

Permalink
Update production package automation
Browse files Browse the repository at this point in the history
  • Loading branch information
jshcodes committed Oct 30, 2024
1 parent 8596cac commit 732efbc
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# This workflow 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
# This workflow will upload a Python Package using Hatch when a release is created

name: Publish Python Package

Expand All @@ -20,12 +19,11 @@ jobs:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
pipx install hatch
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PACKAGE_API_ID }}
TWINE_PASSWORD: ${{ secrets.PACKAGE_API_SECRET }}
HATCH_INDEX_USER: ${{ secrets.PACKAGE_API_ID }}
HATCH_INDEX_AUTH: ${{ secrets.PACKAGE_API_SECRET }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
hatch build
hatch publish

0 comments on commit 732efbc

Please sign in to comment.