diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index d0cc61080..c71109351 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'