krz/yoshi-cli

Archived

A password manager for the command line. cli password-manager terminal

Commit cff4519b59

cff4519b59468f58cc6dbb36e7e3c89d616c2dd4

parent: fd19555e1d

Unregistered key

Christian Cleberg <156287552+ccleberg@users.noreply.github.com> · 2024-11-14 17:23 UTC
committer: <noreply@github.com>

add support for trusted publishing

Layout: unified · split

.github/workflows/python-publish.yml +6 −8
@@ -1,11 +1,6 @@
11# This workflow will upload a Python Package using Twine when a release is created
22# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
33
4# This workflow uses actions that are not certified by GitHub.
5# They are provided by a third-party and are governed by
6# separate terms of service, privacy policy, and support
7# documentation.
8
94name: Upload Python Package
105
116on:
@@ -17,9 +12,12 @@ permissions:
1712
1813jobs:
1914 deploy:
20
2115 runs-on: ubuntu-latest
22
16 environment:
17 name: pypi
18 url: https://pypi.org/p/yoshi-cli
19 permissions:
20 id-token: write
2321 steps:
2422 - uses: actions/checkout@v4
2523 - name: Set up Python
@@ -33,7 +31,7 @@ jobs:
3331 - name: Build package
3432 run: python -m build
3533 - name: Publish package
36 uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
34 uses: pypa/gh-action-pypi-publish@release/v1
3735 with:
3836 user: __token__
3937 password: ${{ secrets.PYPI_API_TOKEN }}