Skip to content

Commit

Permalink
Release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeCarrier committed Nov 9, 2024
1 parent acc073a commit 81a0e09
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release

on:
release:
types: [published]

jobs:
publish:
timeout-minutes: 10

runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v4

# Counterintuitively, we need to install Poetry before Python, because we source the Python
# version from pyproject.toml. The runner's default version of Python should be okay here.
- name: Install Poetry
run: pipx install poetry

- name: Install Python
uses: actions/setup-python@v5
with:
cache: poetry
python-version: "${{ matrix.python }}"

- name: Install dependencies
run: poetry install --with dev

- name: Publish
run: |
poetry config pypi-token.pypi "${{ secrets.PYPI_TOKEN }}"
poetry publish --build

0 comments on commit 81a0e09

Please sign in to comment.