Commit c076da9 1 parent 30199ec commit c076da9 Copy full SHA for c076da9
File tree 2 files changed +25
-6
lines changed
2 files changed +25
-6
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 3
3
push :
4
4
tags : ["*"]
5
5
6
+ env :
7
+ dists-artifact-name : python-package-distributions
8
+
6
9
jobs :
7
- release :
10
+ build :
8
11
runs-on : ubuntu-latest
9
- environment :
10
- name : release
11
- url : https://pypi.org/p/platformdirs
12
- permissions :
13
- id-token : write
14
12
steps :
15
13
- uses : actions/checkout@v4
16
14
with :
23
21
github-token : ${{ secrets.GITHUB_TOKEN }}
24
22
- name : Build package
25
23
run : uv build --python 3.13 --python-preference only-managed --sdist --wheel . --out-dir dist
24
+ - name : Store the distribution packages
25
+ uses : actions/upload-artifact@v4
26
+ with :
27
+ name : ${{ env.dists-artifact-name }}
28
+ path : dist/*
29
+
30
+ release :
31
+ needs :
32
+ - build
33
+ runs-on : ubuntu-latest
34
+ environment :
35
+ name : release
36
+ url : https://pypi.org/project/platformdirs/${{ github.ref_name }}
37
+ permissions :
38
+ id-token : write
39
+ steps :
40
+ - name : Download all the dists
41
+ uses : actions/download-artifact@v4
42
+ with :
43
+ name : ${{ env.dists-artifact-name }}
44
+ path : dist/
26
45
- name : Publish to PyPI
27
46
28
47
with :
You can’t perform that action at this time.
0 commit comments