From b2cf9c4a12ca6506e890810e4b9a5d77ab49e617 Mon Sep 17 00:00:00 2001 From: badaix Date: Mon, 19 Aug 2024 10:04:35 +0200 Subject: [PATCH] Upload release artifacts --- .github/workflows/package.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index f9720656..dcddcfc6 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -92,7 +92,7 @@ jobs: $GITHUB_WORKSPACE/debian/changelog_md2deb.py $GITHUB_WORKSPACE/changelog.md > $GITHUB_WORKSPACE/debian/changelog cat $GITHUB_WORKSPACE/debian/changelog - name: Clean up - run: rm -rf ${{env.PARENT_DIR}}/snap*_${{ matrix.arch }}.deb + run: rm -rf ${{env.PARENT_DIR}}/snap*_*.deb - name: Cache boost id: cache-boost uses: actions/cache@v4 @@ -125,6 +125,7 @@ jobs: rename 's/_${{ matrix.arch }}/_${{ matrix.arch }}_${{ matrix.debian }}/g' ../snap*_${{ matrix.arch }}.deb fakeroot make -f debian/rules clean fakeroot make -f debian/rules CMAKEFLAGS="-DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DBOOST_ROOT=$GITHUB_WORKSPACE/${{env.BOOST}} -DCMAKE_BUILD_TYPE:STRING=Release -DREVISION=${{ github.sha }} -DBUILD_WITH_JACK=OFF -DSNAPWEB_DIR:STRING=$GITHUB_WORKSPACE/snapweb" binary + rm ../snapserver_*_${{ matrix.arch }}.deb rename 's/_${{ matrix.arch }}/_${{ matrix.arch }}_${{ matrix.debian }}_with-pulse/g' ../snap*_${{ matrix.arch }}.deb - name: Test run: ls -la ${{env.PARENT_DIR}}/snap*_*.deb @@ -133,7 +134,11 @@ jobs: with: name: snapcast_${{ matrix.arch }}-debian-${{matrix.debian}}-${{ github.sha }} path: ${{env.PARENT_DIR}}/snap*_${{ matrix.arch }}.deb - + - name: Release artifacts + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh release upload ${{needs.release.outputs.tag}} ${{env.PARENT_DIR}}/snap*_*.deb # mac: # strategy: