Skip to content

Commit

Permalink
[deploy] use Trusted Publisher instead of API token
Browse files Browse the repository at this point in the history
  • Loading branch information
capcom6 committed Jan 22, 2025
1 parent e31dcdc commit a707ff0
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,10 +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.
# This workflow will upload a Python Package when a release is created

name: Upload Python Package

Expand All @@ -18,6 +12,11 @@ permissions:
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/android-sms-gateway
permissions:
id-token: write

steps:
- uses: actions/checkout@v3
Expand All @@ -41,6 +40,3 @@ jobs:
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit a707ff0

Please sign in to comment.