Skip to content

Commit

Permalink
πŸ‘· Added a release action.
Browse files Browse the repository at this point in the history
  • Loading branch information
myles committed Dec 29, 2022
1 parent e4cb640 commit 33f096b
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Release

on:
release:
types:
- created

jobs:
publish:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false

matrix:
os: [ubuntu-latest]
python-version: [3.9]

steps:
- id: checkout
name: Checkout πŸ›Ž
uses: actions/checkout@v2

- id: setup-python
name: Setup Python ${{ matrix.python-version }} πŸ—
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}

- id: setup-poetry
name: Setup Poetry πŸ“
run: |
curl -sSL https://install.python-poetry.org | python3 -
- id: publish
name: Publish πŸš€
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
poetry config pypi-token.pypi $PYPI_TOKEN
poetry publish --build

0 comments on commit 33f096b

Please sign in to comment.