From 1d6d58ef5b3140fbbdaf42c48d2b52c1ebe03b84 Mon Sep 17 00:00:00 2001 From: Ray Date: Wed, 19 Aug 2020 17:22:15 +0200 Subject: [PATCH] Update linux.yml --- .github/workflows/linux.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index d0cc6108..c7110935 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -1,6 +1,10 @@ name: Linux -on: [push, pull_request] +on: + push: + pull_request: + release: + types: [published] jobs: build: @@ -40,6 +44,7 @@ jobs: sudo apt-get install gcc-multilib lib32gcc-7-dev sudo apt-get install -y --no-install-recommends libglfw3 libglfw3-dev libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libxext-dev libxfixes-dev + # TODO: Review i386 shared library building or remove it - name: Build Library run: | ls //usr/lib @@ -61,3 +66,14 @@ jobs: with: name: ${{ env.RELEASE_NAME }}.tar.gz path: ./build/${{ env.RELEASE_NAME }}.tar.gz + + - name: Upload Artifact to Release + uses: actions/upload-release-asset@v1.0.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: ./build/${{ env.RELEASE_NAME }}.zip + asset_name: ${{ env.RELEASE_NAME }}.zip + asset_content_type: application/zip + if: github.event_name == 'release' && github.event.action == 'published'