From 7ed98d5b0ef7dd8ee588a1f46514e55a126c55e7 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Sat, 27 Aug 2022 16:54:49 +0200 Subject: [PATCH] Create GitHub Release on push tag with artifacts Signed-off-by: CrazyMax --- .github/workflows/build.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cac543c0..177be24d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -143,6 +143,14 @@ jobs: env: CACHE_FROM: type=gha,scope=build CACHE_TO: type=gha,scope=build,mode=max + - + name: List artifacts + run: | + tree -nh ${{ env.DESTDIR }} + - + name: Check artifacts + run: | + find ${{ env.DESTDIR }} -type f -exec file -e ascii -- {} + - name: Upload artifacts uses: actions/upload-artifact@v3 @@ -150,6 +158,15 @@ jobs: name: docker-credential-helpers path: ${{ env.DESTDIR }}/* if-no-files-found: error + - + name: GitHub Release + if: startsWith(github.ref, 'refs/tags/v') + uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + draft: true + files: ${{ env.DESTDIR }}/* build-deb: runs-on: ubuntu-20.04