Skip to content

Commit

Permalink
Merge pull request #21 from jrasband-dev/workflows
Browse files Browse the repository at this point in the history
build: Updated release workflow
  • Loading branch information
jrasband-dev authored Sep 22, 2024
2 parents 8babf8b + 798c871 commit 8bf1e1a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.sha || 'main' }} # Use provided SHA or default to main branch

- name: Set up Python
uses: actions/setup-python@v4
Expand All @@ -35,9 +37,10 @@ jobs:
run: python -m build

- name: Publish to PyPI
if: ${{ !github.event.inputs.dry-run }} # Only publish if not a dry run
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
run: |
pip install twine
python -m twine upload dist/*

0 comments on commit 8bf1e1a

Please sign in to comment.