File tree Expand file tree Collapse file tree 2 files changed +15
-18
lines changed Expand file tree Collapse file tree 2 files changed +15
-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 }}
21
+
17
22
# run this workflow manually from the Actions tab
18
23
workflow_dispatch :
19
24
inputs :
@@ -28,7 +33,6 @@ concurrency:
28
33
cancel-in-progress : true
29
34
30
35
jobs :
31
-
32
36
build-python :
33
37
runs-on : ubuntu-latest
34
38
outputs :
68
72
needs : build-python
69
73
strategy :
70
74
matrix :
71
- os : [ubuntu-latest, macos-latest, windows-latest]
75
+ os : [ ubuntu-latest, macos-latest, windows-latest ]
72
76
python : ["3.11", "3.12", "3.13"]
73
77
fail-fast : false
74
78
runs-on : ${{ matrix.os }}
@@ -101,6 +105,8 @@ jobs:
101
105
permissions :
102
106
contents : write
103
107
runs-on : ubuntu-latest
108
+ outputs :
109
+ tag : ${{ steps.tag.outputs.tag }}
104
110
steps :
105
111
- name : Setup Python 3.13
106
112
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