Skip to content

Commit

Permalink
Merge branch 'master' of github.com:eddieantonio/sentinel into master
Browse files Browse the repository at this point in the history
  • Loading branch information
eddieantonio committed Dec 30, 2020
2 parents c0cf334 + 43bc208 commit 96e21c4
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Publishes a Python package to PyPI when a GitHub release is created
name: Upload Python Package

on:
release:
types: [created]

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install Poetry
run: |
python -m pip install poetry
- name: Build and publish
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_UPLOAD_TOKEN }}
run: |
poetry publish --build

0 comments on commit 96e21c4

Please sign in to comment.