Skip to content

Commit 7a2c0a7

Browse files
committed
Publish releases to github
1 parent 3b324c3 commit 7a2c0a7

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-24.04
11+
steps:
12+
- uses: actions/checkout@v6
13+
14+
- name: Set up Python
15+
uses: actions/setup-python@v6
16+
with:
17+
python-version: "3.14"
18+
19+
- name: Install build tool
20+
run: python -m pip install build
21+
22+
- name: Build distributions
23+
run: python -m build
24+
25+
- uses: actions/upload-artifact@v4
26+
with:
27+
name: dist
28+
path: dist/
29+
30+
github-release:
31+
needs: build
32+
runs-on: ubuntu-24.04
33+
permissions:
34+
contents: write
35+
steps:
36+
- uses: actions/download-artifact@v4
37+
with:
38+
name: dist
39+
path: dist/
40+
41+
- uses: softprops/action-gh-release@v2
42+
with:
43+
files: dist/*
44+
prerelease: ${{ contains(github.ref, '-rc') }}

0 commit comments

Comments
 (0)