Created
May 27, 2024 22:35
-
-
Save knowsuchagency/d83fd97a1d44c04e97c746e879df3fb4 to your computer and use it in GitHub Desktop.
Publish to pypi with flit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish to PyPI | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
pypi-publish: | |
name: upload release to PyPI | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Flit | |
run: pip install flit | |
- name: Build Package | |
run: flit build | |
- name: Publish package distributions to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
skip-existing: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment