From 43739cfd3f4ae991db6bc7b1dc871770416c27df Mon Sep 17 00:00:00 2001 From: Manuel Date: Mon, 9 Aug 2021 18:31:56 +0200 Subject: [PATCH] Add building AppImage and making draft release (#2) * Use branch name for VERSION * Use ubuntu-20.04 for AppImage, since CSFML 2.5 not available at ubuntu-18.04 --- .github/workflows/main.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a48f44d..015b567 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,5 @@ # Build using Alire. +name: Build on: push: @@ -28,3 +29,30 @@ jobs: uses: alire-project/setup-alire@latest-stable - name: Build run: alr build + + release: + name: Continuous AppImage + runs-on: ubuntu-20.04 + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: ada-actions/toolchain + uses: ada-actions/toolchain@ce2021 + with: + distrib: community + target: native + - name: alire-project/setup-alire + uses: alire-project/setup-alire@latest-stable + - name: Build + run: alr build + - name: Build AppImage + run: VERSION=${GITHUB_BASE_REF:-${GITHUB_REF#refs/heads/}} make AppImage + - name: Create Release + uses: ncipollo/release-action@v1 + with: + allowUpdates: True + tag: continuous + name: Continuous build + prerelease: True + artifacts: "Play_2048*.AppImage" + token: ${{ secrets.GITHUB_TOKEN }}