Add release/publish flow #1
Workflow file for this run
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: Python package | |
on: | |
push: | |
tags: | |
- "*.*.*" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# If there isn't a release for this version, create a new one. | |
- uses: ncipollo/release-action@v1 | |
with: | |
generateReleaseNotes: true | |
makeLatest: true | |
prerelease: true | |
skipIfReleaseExists: true | |
# Build and publish the package to pypi. | |
- name: Build and publish to pypi | |
uses: JRubics/[email protected] | |
with: | |
python_version: "3.10" | |
pypi_token: ${{ secrets.PYPI_PASSWORD }} | |
package_directory: "opshin" | |
poetry_install_options: "--without dev" |