Skip to content

Commit

Permalink
Publish via trusted publisher
Browse files Browse the repository at this point in the history
thanks u mr yossarian
  • Loading branch information
ehennenfent authored Dec 16, 2023
1 parent ca1db19 commit a82badc
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package
name: Upload to PyPI

on:
release:
Expand All @@ -16,10 +8,10 @@ permissions:
contents: read

jobs:
deploy:

pypi-publish:
runs-on: ubuntu-latest

permissions:
id-token: write
steps:
- uses: actions/checkout@v3
- name: Set up Python
Expand All @@ -34,6 +26,3 @@ jobs:
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit a82badc

Please sign in to comment.