Skip to content

Commit

Permalink
13.02.2024: python-release update
Browse files Browse the repository at this point in the history
  • Loading branch information
wisstock committed Feb 13, 2024
1 parent d6c74f9 commit 868d107
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Upload Python Package
name: Upload release to PyPI

on:
push:
Expand All @@ -11,8 +11,7 @@ permissions:
contents: read

jobs:
deploy:

pypi-publish:
runs-on: ubuntu-latest

steps:
Expand All @@ -24,11 +23,12 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
pip install build twine
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python -m twine upload --repository testpypi dist/*

0 comments on commit 868d107

Please sign in to comment.