Skip to content

Commit

Permalink
add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
amorison committed Apr 15, 2024
1 parent 5e0ab17 commit 63dd502
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: release

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

jobs:
tests:
uses: ./.github/workflows/tox.yml

pypi-publish:
needs: tests
permissions:
id-token: write
environment:
name: pypi
url: https://pypi.org/p/stagpy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- uses: actions/setup-python@v5
with:
python-version: 3.12
- run: python3 -m pip install -U pip
- run: python3 -m pip install build
- run: python3 -m build
- uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 63dd502

Please sign in to comment.