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 1414 description : Create a (pre-)release when CI passes
1515 default : false
1616 required : false
17+ outputs :
18+ tag :
19+ description : " The created release tag"
20+ value : ${{ jobs.github-release.outputs.tag }}
1721
1822concurrency :
1923 group : ${{ github.workflow }}-${{ github.ref }}-main
2024 cancel-in-progress : true
2125
2226jobs :
23-
2427 build-python :
2528 runs-on : ubuntu-latest
2629 outputs :
6063 needs : build-python
6164 strategy :
6265 matrix :
63- os : [ubuntu-latest, macos-latest, windows-latest]
66+ os : [ ubuntu-latest, macos-latest, windows-latest ]
6467 python : ["3.11", "3.12", "3.13"]
6568 fail-fast : false
6669 runs-on : ${{ matrix.os }}
9396 permissions :
9497 contents : write
9598 runs-on : ubuntu-latest
99+ outputs :
100+ tag : ${{ steps.tag.outputs.tag }}
96101 steps :
97102 - name : Setup Python 3.13
98103 uses : actions/setup-python@v5
Original file line number Diff line number Diff line change @@ -64,22 +64,13 @@ jobs:
6464 if : (github.event_name == 'workflow_dispatch' && inputs.create_release) || github.event_name == 'push'
6565
6666 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
8374
8475 - name : List downloaded assets
8576 run : ls -la assets-to-publish
You can’t perform that action at this time.
0 commit comments