File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ # SPDX-FileCopyrightText: 2025 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+ pull_request :
11+ branches :
12+ - main
13+ - release-*
14+
15+ jobs :
16+
17+ build :
18+ runs-on : ubuntu-latest
19+ strategy :
20+ steps :
21+ - uses : actions/checkout@v4
22+ - uses : actions/setup-python@v5
23+ with :
24+ python-version : ' 3.14'
25+ - run : python -m pip install build
26+ - run : python -m build
27+ - uses : actions/upload-artifact@v4
28+ with :
29+ path : dist/*
30+
31+ upload :
32+ needs : build
33+ runs-on : ubuntu-latest
34+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
35+ environment :
36+ name : pipy
37+ url : https://pypi.org/p/meson-python
38+ permissions :
39+ id-token : write
40+ steps :
41+ - uses : actions/download-artifact@v4
42+ with :
43+ merge-multiple : true
44+ path : dist
45+ - uses : pypa/gh-action-pypi-publish@release/v1
46+ with :
47+ print-hash : true
You can’t perform that action at this time.
0 commit comments