File tree Expand file tree Collapse file tree 2 files changed +14
-18
lines changed Expand file tree Collapse file tree 2 files changed +14
-18
lines changed Original file line number Diff line number Diff line change 14
14
description : Create a (pre-)release when CI passes
15
15
default : false
16
16
required : false
17
+ outputs :
18
+ tag :
19
+ description : " The created release tag"
20
+ value : ${{ jobs.github-release.outputs.tag }}
17
21
18
22
concurrency :
19
23
group : ${{ github.workflow }}-${{ github.ref }}-main
20
24
cancel-in-progress : true
21
25
22
26
jobs :
23
-
24
27
build-python :
25
28
runs-on : ubuntu-latest
26
29
outputs :
60
63
needs : build-python
61
64
strategy :
62
65
matrix :
63
- os : [ubuntu-latest, macos-latest, windows-latest]
66
+ os : [ ubuntu-latest, macos-latest, windows-latest ]
64
67
python : ["3.11", "3.12", "3.13"]
65
68
fail-fast : false
66
69
runs-on : ${{ matrix.os }}
93
96
permissions :
94
97
contents : write
95
98
runs-on : ubuntu-latest
99
+ outputs :
100
+ tag : ${{ steps.tag.outputs.tag }}
96
101
steps :
97
102
- name : Setup Python 3.13
98
103
uses : actions/setup-python@v5
Original file line number Diff line number Diff line change @@ -64,22 +64,13 @@ jobs:
64
64
if : (github.event_name == 'workflow_dispatch' && inputs.create_release) || github.event_name == 'push'
65
65
66
66
steps :
67
- - name : Download assets from GitHub release
68
- uses : robinraju/release-downloader@v1
69
- with :
70
- repository : ${{ github.repository }}
71
- # download the latest release
72
- latest : true
73
- # don't download pre-releases
74
- preRelease : false
75
- fileName : " *"
76
- # don't download GitHub-generated source tar and zip files
77
- tarBall : false
78
- zipBall : false
79
- # create a directory to store the downloaded assets
80
- out-file-path : assets-to-publish
81
- # don't extract downloaded files
82
- extract : false
67
+ - name : Download assets from latest GitHub release using gh CLI
68
+ env :
69
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
70
+ run : |
71
+ mkdir -p assets-to-publish
72
+ release_tag="${{ needs.build-test-release.outputs.tag }}"
73
+ gh release download "$release_tag" --repo "$GITHUB_REPOSITORY" --dir assets-to-publish
83
74
84
75
- name : List downloaded assets
85
76
run : ls -la assets-to-publish
You can’t perform that action at this time.
0 commit comments