Skip to content

Commit

Permalink
[workflows\publish_to_pypi] Add ``Upload artifact signatures to GitHu…
Browse files Browse the repository at this point in the history
…b Release``
  • Loading branch information
moi15moi committed Oct 3, 2024
1 parent d132e4a commit e117c16
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/publish_to_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
name: pypi
url: https://pypi.org/p/FontCollector
permissions:
contents: write
id-token: write
steps:
- name: Checkout code
Expand All @@ -23,12 +24,15 @@ jobs:
python-version: '3.10'

- name: "Install build"
run: >-
pip install build
run: pip install build

- name: Build package
run: >-
python -m build
run: python -m build

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

- name: Upload artifact signatures to GitHub Release
env:
GITHUB_TOKEN: ${{ github.token }}
run: gh release upload '${{ github.ref_name }}' dist/** --repo '${{ github.repository }}'

0 comments on commit e117c16

Please sign in to comment.