Skip to content

Commit

Permalink
⚙ GitHub Actions: Publish on PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
mikegerber committed Jul 26, 2023
1 parent 13ea579 commit a446879
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,26 @@ on:
- "v*.*.*"

jobs:
build:
github-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Release
- name: Create release on GitHub
uses: softprops/action-gh-release@v1
- name: Upload release to PyPI

pypi-publish:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/setuptools-ocrd
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build package
run: python3 -m pip install --upgrade build && python3 -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit a446879

Please sign in to comment.