Skip to content

Commit 26b8173

Browse files
committed
fix: download only binary artifacts in release job
- Add pattern filter to exclude Docker build cache artifacts - Use merge-multiple to flatten artifact directories - Simplify tags to version and timestamp-commit format
1 parent a696e2e commit 26b8173

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/build-publish.yaml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -75,25 +75,21 @@ jobs:
7575

7676
- name: Download artifacts
7777
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6
78-
79-
- name: Prep binaries
80-
run: |
81-
mkdir tmp
82-
mv prometheus-mailgun-exporter-*/* tmp/
78+
with:
79+
pattern: prometheus-mailgun-exporter-*
80+
merge-multiple: true
8381

8482
- name: Generate SHA256 Checksum
85-
run: |
86-
cd tmp
87-
shasum -a 256 prometheus-mailgun-exporter-* > sha256sums.txt
83+
run: shasum -a 256 prometheus-mailgun-exporter-* > sha256sums.txt
8884

8985
- name: Upload artifacts to GitHub Release
9086
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2
9187
with:
9288
draft: false
9389
prerelease: false
9490
files: |
95-
./tmp/sha256sums.txt
96-
./tmp/prometheus-mailgun-exporter-*
91+
./sha256sums.txt
92+
./prometheus-mailgun-exporter-*
9793
env:
9894
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9995

0 commit comments

Comments
 (0)