Fix handling of artifacts for nightlies and release builds. (#11725)
* Fix hnadling of static build artifacts for release builds. * Fix overall artifact handling for release build. * Fix typo
Austin S. Hemmelgarn committed
Oct 27, 2021 at 07:54 UTC
0eb31a01c62baceb33ce6ff48c8abcedf4d45450
2 files changed
+14
-4
.github/scripts/build-static.sh
+4
-2
@@ -32,8 +32,10 @@ prepare_assets() {
32
cp packaging/version artifacts/latest-version.txt
33
34
cd artifacts || exit 1
35
- ln -s "${BASENAME}.gz.run" netdata-latest.gz.run
36
- sha256sum -b ./* > "sha256sums.txt"
35
+ ln -s "${BASENAME}.gz.run" "netdata-${BUILDARCH}-latest.gz.run"
36
+ if [ "${BUILDARCH}" = "x86_64" ]; then
37
+ ln -s "${BASENAME}.gz.run" netdata-latest.gz.run
38
+ fi
39
) >&2
40
}
41
.github/workflows/release-build.yml
+10
-2
@@ -130,8 +130,16 @@ jobs:
130
uses: actions/checkout@v2
131
- name: Prepare Environment
132
run: mkdir -p artifacts
133
- - name: Retrieve Artifacts
133
+ - name: Retrieve Dist Tarball
134
+ uses: actions/download-artifact@v2
135
+ with:
136
+ name: dist-tarball
137
+ path: dist-tarball
138
+ - name: Retrieve Static Build Artifacts
139
uses: actions/download-artifact@v2
140
+ with:
141
+ name: static-archive
142
+ path: static-archive
143
- name: Prepare Artifacts
144
working-directory: ./artifacts/
145
run: |
@@ -241,5 +249,5 @@ jobs:
249
${{
250
failure()
251
&& startsWith(github.ref, 'refs/heads/master')
244
- && github.event_name == 'wworkflow_dispatch'
252
+ && github.event_name == 'workflow_dispatch'
253
}}