Skip to content

Commit

Permalink
update workflows (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelstjean authored Dec 16, 2024
1 parent b2f6cf8 commit 6f39634
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,30 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install twine build
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
pip install build
- name: Build
run: |
python -m build
twine upload dist/*
- name: upload to pypi
uses: pypa/gh-action-pypi-publish@release/v1

- name: GH Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: dist/*

0 comments on commit 6f39634

Please sign in to comment.