Skip to content

Commit 8aba49a

Browse files
committed
consolidate ci
1 parent 03ae1f3 commit 8aba49a

File tree

2 files changed

+27
-30
lines changed

2 files changed

+27
-30
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
name: Tests
1+
name: CI
22

33
on:
44
push:
55
branches: [main]
6+
tags: ["v*"]
67
pull_request:
78
branches: [main]
89

@@ -48,3 +49,28 @@ jobs:
4849
fail_ci_if_error: false
4950
env:
5051
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
52+
53+
publish:
54+
if: startsWith(github.ref, 'refs/tags/v')
55+
needs: test
56+
runs-on: ubuntu-latest
57+
environment: pypi
58+
permissions:
59+
id-token: write
60+
61+
steps:
62+
- uses: actions/checkout@v4
63+
64+
- name: Set up Python
65+
uses: actions/setup-python@v5
66+
with:
67+
python-version: "3.12"
68+
69+
- name: Install build tools
70+
run: pip install build
71+
72+
- name: Build package
73+
run: python -m build
74+
75+
- name: Publish to PyPI
76+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)