We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9a0447 commit d2a0797Copy full SHA for d2a0797
.github/workflows/release.yaml
@@ -0,0 +1,33 @@
1
+name: Release
2
+
3
+on:
4
+ pull_request:
5
+ branches-ignore:
6
+ - 'master'
7
+ push:
8
+ tags:
9
+ - '[0-9]+.[0-9]+.[0-9]+'
10
+ - '[0-9]+.[0-9]+.[0-9]+rc[0-9]+'
11
12
+jobs:
13
+ release-to-pypi:
14
+ runs-on: ubuntu-24.04
15
+ environment: release
16
+ permissions:
17
+ id-token: write
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+ - name: Set up Python
21
+ uses: actions/setup-python@v5
22
+ with:
23
+ python-version: "3.12"
24
+ - name: Install pypa/build
25
+ run: >-
26
+ python3 -m
27
+ pip install
28
+ build
29
+ --user
30
+ - name: Build a binary wheel and a source tarball
31
+ run: python3 -m build
32
+ - name: Publish package distributions to PyPI
33
+ uses: pypa/gh-action-pypi-publish@release/v1
0 commit comments