Skip to content

Commit

Permalink
Add building AppImage and making draft release (#2)
Browse files Browse the repository at this point in the history
* Use branch name for VERSION
* Use ubuntu-20.04 for AppImage, since CSFML 2.5 not available at ubuntu-18.04
  • Loading branch information
mgrojo authored Aug 9, 2021
1 parent 0ece3e3 commit 43739cf
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Build using Alire.
name: Build

on:
push:
Expand Down Expand Up @@ -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 }}

0 comments on commit 43739cf

Please sign in to comment.