Skip to content

Commit 6024255

Browse files
committed
ci(release): copy artifacts into build dir
1 parent f3f0c58 commit 6024255

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/release.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
name: Release
2121
runs-on: ubuntu-latest
2222
needs: generate
23+
env:
24+
ARTIFACTSDIR: /tmp/bpf
2325
steps:
2426
- name: Checkout
2527
uses: actions/checkout@v4
@@ -30,7 +32,7 @@ jobs:
3032
uses: actions/download-artifact@v4
3133
with:
3234
name: bpf
33-
path: internal/bpf
35+
path: "${{ env.ARTIFACTSDIR }}"
3436

3537
# We need to do this because of:
3638
# https://github.com/actions/checkout/issues/290 and its side-effects

.goreleaser.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ project_name: exceed2go
66

77
version: 2
88

9-
gomod:
10-
proxy: true
9+
before:
10+
hooks:
11+
- sh -c "cp -v {{ .Env.ARTIFACTSDIR }}/* internal/bpf/"
1112

1213
builds:
1314
- binary: exceed2go

0 commit comments

Comments
 (0)