Skip to content

Commit

Permalink
feat: publish the package to PyPI when a v* tag is created (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oreoxmt authored Oct 2, 2023
1 parent 9a5f88b commit 38e9d97
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Release

on:
push:
tags:
- 'v*'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Publish to PyPI
run: |
curl -sSL https://install.python-poetry.org | python3 - --version 1.6.1
poetry config pypi-token.pypi $PYPI_TOKEN
poetry publish --build
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}

0 comments on commit 38e9d97

Please sign in to comment.