Skip to content

Commit

Permalink
Merge pull request #331 from moj-analytical-services/add_autorelease
Browse files Browse the repository at this point in the history
add autorelease
  • Loading branch information
RobinL committed Mar 8, 2022
2 parents 875b92a + 15b33cb commit 5e79439
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/poetry_pypi_release.yml
@@ -0,0 +1,21 @@
name: Release Package on PyPi
on:
push:
tags:
- "v*.*.*"
jobs:
poetry-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.8"
- name: Install Poetry
run: |
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
- name: Publish to Pypi
env:
TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: poetry publish --build -u __token__ -p $TOKEN

0 comments on commit 5e79439

Please sign in to comment.