Skip to content

Commit

Permalink
add publish CI
Browse files Browse the repository at this point in the history
  • Loading branch information
zunda-arrow committed Sep 7, 2022
1 parent 93533bc commit 7dd9a45
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: pypi

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install Dependencies
run: pip install poetry
- name: Build & Upload
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
poetry config pypi-token.pypi $PYPI_TOKEN
poetry version $(git describe --tags --abbrev=0)
poetry build
poetry publish

0 comments on commit 7dd9a45

Please sign in to comment.