Skip to content

Commit

Permalink
Added publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Joscha Götzer committed Oct 19, 2020
1 parent 6ee7295 commit 5a8990f
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish

on:
release:
types: [ created ]
repository_dispatch:
types: [ publish_pypi ]
workflow_dispatch:


jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8
- name: "Install Poetry"
uses: Gr1N/setup-poetry@v3
with:
poetry-version: 1.0
- name: Poetry install
run: poetry install
- name: Poetry publish
run: poetry publish --build -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }}

0 comments on commit 5a8990f

Please sign in to comment.