@cryptotaxi247 / netdata-1 / commits / c230fc3c8

Fix handling of distfile links in release/nightly builds. (#11726)

Austin S. Hemmelgarn committed Oct 27, 2021 at 08:23 UTC c230fc3c8e8ee7eaa8e74822500c52588763c735
1 file changed +6 -2
.github/workflows/release-build.yml
+6 -2
@@ -23,6 +23,8 @@ jobs:
23 build-dist: # Build the distribution tarball and store it as an artifact.
24 name: Build Distribution Tarball
25 runs-on: ubuntu-latest
26 + outputs:
27 + distfile: ${{ steps.build.outputs.distfile }}
28 steps:
29 - name: Checkout
30 uses: actions/checkout@v2
@@ -34,6 +36,7 @@ jobs:
36 run: |
37 sed -i 's/^RELEASE_CHANNEL="nightly" *#/RELEASE_CHANNEL="stable" #/' netdata-installer.sh
38 - name: Build
39 + id: build
40 run: |
41 mkdir -p artifacts
42 ./packaging/installer/install-required-packages.sh --dont-wait --non-interactive netdata-all
@@ -46,11 +49,11 @@ jobs:
49 --with-math \
50 --with-user=netdata
51 make dist
49 - echo "DISTFILE=$(find . -name 'netdata-*.tar.gz')" >> "$GITHUB_ENV"
52 + echo "::set-output name=distfile::$(find . -name 'netdata-*.tar.gz')"
53 cp netdata-*.tar.gz artifacts/
54 - name: Test
55 run: |
53 - .github/scripts/run_install_with_dist_file.sh "${DISTFILE}"
56 + .github/scripts/run_install_with_dist_file.sh ${{ steps.build.outputs.distfile }}
57 - name: Store
58 uses: actions/upload-artifact@v2
59 with:
@@ -145,6 +148,7 @@ jobs:
148 run: |
149 mv ../dist-tarball/* .
150 mv ../static-archive/* .
151 + ln -s ${{ needs.build-dist.outputs.distfile }} netdata-latest.tar.gz
152 cp ../packaging/version ./latest-version.txt
153 sha256sum -b ./* > sha256sums.txt
154 - name: Store Artifacts