@cryptotaxi247 / netdata-1 / commits / e9409a8db

Add archive uploads for dist, package build, and static build checks. (#11534)

Austin S. Hemmelgarn committed Sep 27, 2021 at 10:59 UTC e9409a8db09bc966d499d9b12e4b053483b76ef6
3 files changed +16 -1
.github/workflows/build-and-install.yml
+5
@@ -23,6 +23,11 @@ jobs:
23 submodules: recursive
24 - name: Build
25 run: .github/scripts/build-static.sh ${{ matrix.arch }}
26 + - name: Save Packages
27 + uses: actions/upload-artifact@v2
28 + with:
29 + name: ${{ matrix.arch }}-static-builds
30 + path: ${{ github.workspace }}/artifacts/*
31 source-build:
32 name: Build & Install
33 strategy:
.github/workflows/checks.yml
+5
@@ -77,6 +77,11 @@ jobs:
77 run: |
78 ls -lah netdata-*.tar.gz
79 echo "DISTFILE=$(ls netdata-*.tar.gz)" >> $GITHUB_ENV
80 + - name: Save Packages
81 + uses: actions/upload-artifact@v2
82 + with:
83 + name: dist-archive
84 + path: ${{ github.workspace }}/${{ env.DISTFILE }}
85 - name: Run run_install_with_dist_file.sh
86 run: |
87 ./.github/scripts/run_install_with_dist_file.sh "${DISTFILE}"
.github/workflows/packaging.yml
+6 -1
@@ -110,7 +110,12 @@ jobs:
110 shell: bash
111 run: |
112 docker run -e DO_NOT_TRACK=1 -e DISTRO=${{ matrix.distro }} -e VERSION=${{ env.pkg_version }} -e DISTRO_VERSION=${{ env.version }} --platform=${{ matrix.platform }} -v $PWD:/netdata ${{ matrix.base_image }}:${{ env.version }} /netdata/.github/scripts/pkg-test.sh
113 - - name: Upload
113 + - name: Save Packages
114 + uses: actions/upload-artifact@v2
115 + with:
116 + name: ${{ matrix.distro }}-${{ matrix.version }}-packages
117 + path: ${{ github.workspace }}/artifacts/*
118 + - name: Upload to PackageCloud
119 if: github.event_name == 'workflow_dispatch'
120 shell: bash
121 env: