Skip to content

Commit e9fd894

Browse files
authored
Merge branch 'main' into feat/remove-dispatch-from-release-action
Signed-off-by: Thijs Baaijen <[email protected]>
2 parents 24303ca + 9c28963 commit e9fd894

File tree

2 files changed

+14
-18
lines changed

2 files changed

+14
-18
lines changed

.github/workflows/build-test-release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@ on:
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

1822
concurrency:
1923
group: ${{ github.workflow }}-${{ github.ref }}-main
2024
cancel-in-progress: true
2125

2226
jobs:
23-
2427
build-python:
2528
runs-on: ubuntu-latest
2629
outputs:
@@ -60,7 +63,7 @@ jobs:
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 }}
@@ -93,6 +96,8 @@ jobs:
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

.github/workflows/ci.yml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)