Skip to content

Commit 721d71e

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

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/release.yml

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

0 commit comments

Comments
 (0)