Skip to content

Commit

Permalink
ci: add publish release in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
PrettyWood committed Jan 30, 2022
1 parent 41d94cd commit cfb293b
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish

on:
release:
types:
- created

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: install poetry
run: |
pip install -U pip
pip install -U poetry
- name: publish
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
poetry config pypi-token.pypi $PYPI_TOKEN
poetry publish --build

0 comments on commit cfb293b

Please sign in to comment.