Skip to content

Commit d182e09

Browse files
committed
CI: setup release artifacts build job and upload with trusted publishing
1 parent 0444e63 commit d182e09

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: release
2+
on:
3+
push:
4+
tags:
5+
- '[0-9]+.[0-9]+.[0-9]+'
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
strategy:
10+
steps:
11+
- uses: actions/checkout@v4
12+
- run: python -m pip install build
13+
- run: python -m build
14+
- uses: actions/upload-artifact@v4
15+
with:
16+
path: dist/*
17+
upload:
18+
needs: build
19+
runs-on: ubuntu-latest
20+
environment: upload
21+
permissions:
22+
id-token: write
23+
steps:
24+
- uses: actions/download-artifact@v4
25+
with:
26+
merge-multiple: true
27+
path: dist
28+
- uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)