Skip to content

Commit 23981b0

Browse files
authored
fix: Bundle assets into one artifact named sha for craft publish (#80)
Craft requires all assets to be contained in a single artifact named after the long sha of the release branch head commit.
1 parent 68e8122 commit 23981b0

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow builds both sentry-prevent-cli and codecov-cli on push to a
22
# release/* branch. These are later released by Craft and another workflow,
33
# respectively.
4-
name: Build and publish codecov-cli
4+
name: Build release
55

66
on:
77
push:
@@ -156,3 +156,20 @@ jobs:
156156
with:
157157
name: sentry-prevent-cli_${{ matrix.distro_name }}_${{ matrix.arch }}
158158
path: ./prevent-cli/dist/sentry-prevent-cli_*
159+
160+
package_artifacts:
161+
# Craft requires one artifact named after the long commit sha of the release
162+
name: Package assets for Craft
163+
runs-on: ubuntu-latest
164+
steps:
165+
- name: Download artifacts
166+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
167+
with:
168+
pattern: sentry-prevent-cli_*
169+
merge-multiple: true
170+
171+
- name: Upload release artifact
172+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
173+
with:
174+
name: ${{ github.sha }}
175+
path: sentry-prevent-cli_*

0 commit comments

Comments
 (0)