Skip to content

Commit

Permalink
Add automated release process (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchainz authored Oct 27, 2024
1 parent 58307ac commit e3dd88f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- main
tags:
- '**'
pull_request:

concurrency:
Expand Down Expand Up @@ -44,3 +46,23 @@ jobs:

- name: Run tox targets for ${{ matrix.python-version }}
run: tox run -f py$(echo ${{ matrix.python-version }} | tr -d .)

release:
needs: [tests]
if: success() && startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-24.04
environment: release

permissions:
contents: read
id-token: write

steps:
- uses: actions/checkout@v4

- uses: astral-sh/setup-uv@v3

- name: Build
run: uv build

- uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit e3dd88f

Please sign in to comment.