mirror of
https://github.com/netdata/netdata.git
synced 2025-04-25 05:31:37 +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
|
||||
|
||||
cd artifacts || exit 1
|
||||
ln -s "${BASENAME}.gz.run" netdata-latest.gz.run
|
||||
sha256sum -b ./* > "sha256sums.txt"
|
||||
ln -s "${BASENAME}.gz.run" "netdata-${BUILDARCH}-latest.gz.run"
|
||||
if [ "${BUILDARCH}" = "x86_64" ]; then
|
||||
ln -s "${BASENAME}.gz.run" netdata-latest.gz.run
|
||||
fi
|
||||
) >&2
|
||||
}
|
||||
|
||||
|
|
12
.github/workflows/release-build.yml
vendored
12
.github/workflows/release-build.yml
vendored
|
@ -130,8 +130,16 @@ jobs:
|
|||
uses: actions/checkout@v2
|
||||
- name: Prepare Environment
|
||||
run: mkdir -p artifacts
|
||||
- name: Retrieve Artifacts
|
||||
- name: Retrieve Dist Tarball
|
||||
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
|
||||
working-directory: ./artifacts/
|
||||
run: |
|
||||
|
@ -241,5 +249,5 @@ jobs:
|
|||
${{
|
||||
failure()
|
||||
&& startsWith(github.ref, 'refs/heads/master')
|
||||
&& github.event_name == 'wworkflow_dispatch'
|
||||
&& github.event_name == 'workflow_dispatch'
|
||||
}}
|
||||
|
|
Loading…
Add table
Reference in a new issue