Skip to content

Commit

Permalink
Automatically publish new versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ariataylor96 authored and Mark Rawls committed Sep 2, 2020
1 parent 6d6152b commit d21d46f
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish Package

'on':
push:
branches:
- master

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
with:
python-version: '3.7'
architecture: 'x64'
- name: Install dependencies
run: |
pip install poetry
poetry install
- name: Set credentials
env:
API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: poetry config pypi-token.pypi "$API_TOKEN"
- name: Build
run: poetry build
- name: Publish
run: poetry publish

0 comments on commit d21d46f

Please sign in to comment.