mirror of
https://github.com/netdata/netdata.git
synced 2025-05-03 17:00:03 +00:00
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
This commit is contained in:
parent
9ed4cea590
commit
0eb31a01c6
2 changed files with 14 additions and 4 deletions
.github
6
.github/scripts/build-static.sh
vendored
6
.github/scripts/build-static.sh
vendored
|
@ -32,8 +32,10 @@ prepare_assets() {
|
||||||
cp packaging/version artifacts/latest-version.txt
|
cp packaging/version artifacts/latest-version.txt
|
||||||
|
|
||||||
cd artifacts || exit 1
|
cd artifacts || exit 1
|
||||||
ln -s "${BASENAME}.gz.run" netdata-latest.gz.run
|
ln -s "${BASENAME}.gz.run" "netdata-${BUILDARCH}-latest.gz.run"
|
||||||
sha256sum -b ./* > "sha256sums.txt"
|
if [ "${BUILDARCH}" = "x86_64" ]; then
|
||||||
|
ln -s "${BASENAME}.gz.run" netdata-latest.gz.run
|
||||||
|
fi
|
||||||
) >&2
|
) >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
12
.github/workflows/release-build.yml
vendored
12
.github/workflows/release-build.yml
vendored
|
@ -130,8 +130,16 @@ jobs:
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Prepare Environment
|
- name: Prepare Environment
|
||||||
run: mkdir -p artifacts
|
run: mkdir -p artifacts
|
||||||
- name: Retrieve Artifacts
|
- name: Retrieve Dist Tarball
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: dist-tarball
|
||||||
|
path: dist-tarball
|
||||||
|
- name: Retrieve Static Build Artifacts
|
||||||
|
uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: static-archive
|
||||||
|
path: static-archive
|
||||||
- name: Prepare Artifacts
|
- name: Prepare Artifacts
|
||||||
working-directory: ./artifacts/
|
working-directory: ./artifacts/
|
||||||
run: |
|
run: |
|
||||||
|
@ -241,5 +249,5 @@ jobs:
|
||||||
${{
|
${{
|
||||||
failure()
|
failure()
|
||||||
&& startsWith(github.ref, 'refs/heads/master')
|
&& startsWith(github.ref, 'refs/heads/master')
|
||||||
&& github.event_name == 'wworkflow_dispatch'
|
&& github.event_name == 'workflow_dispatch'
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue