Skip to content

Commit

Permalink
fix pyauditor publishing to PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
dirksammel committed Nov 17, 2023
1 parent f4828ff commit 2e4bc61
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,25 @@ on:
jobs:
release-pyauditor:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
steps:
- name: Download pyauditor wheels
uses: actions/download-artifact@v3
with:
name: pyauditor-wheels
path: dist

- name: Setup python
uses: actions/setup-python@v4
with:
python-version: 3.9

- name: Publish to PyPi
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
pip install --upgrade twine
twine upload --skip-existing *
- name: Publish to GitHub
uses: softprops/action-gh-release@v1
with:
files: dist\*

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 2e4bc61

Please sign in to comment.