0
0
Fork 0
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. ()

* Fix hnadling of static build artifacts for release builds.

* Fix overall artifact handling for release build.

* Fix typo
This commit is contained in:
Austin S. Hemmelgarn 2021-10-27 07:54:30 -04:00 committed by GitHub
parent 9ed4cea590
commit 0eb31a01c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 4 deletions
.github

View file

@ -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
} }

View file

@ -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'
}} }}