generated from MechanicalFlower/godot-template
-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (36 loc) · 1.28 KB
/
appimage-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: AppImage Build
on:
workflow_dispatch:
# Ensure the build works on main
push:
branches: [main]
# Ensure the build works on each pull request
pull_request:
# Build and publish on release
release:
types: [published]
jobs:
build:
runs-on: ubuntu-22.04
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: extractions/setup-just@v1
- name: Load dotenv
run: just ci-load-dotenv
- name: Load dotenv
run: just bump-version
- name: Build AppImage
run: |
wget -c $(wget -q https://api.github.com/repos/AppImageCommunity/pkg2appimage/releases -O - | grep "pkg2appimage-.*-x86_64.AppImage" | grep browser_download_url | head -n 1 | cut -d '"' -f 4)
chmod +x ./pkg2appimage-*.AppImage
./pkg2appimage-*.AppImage public/packaging/appimage/recipe.yml
mv ./out/Marble-*.AppImage Marble.AppImage
- uses: actions/upload-artifact@v4
with:
name: Marble.AppImage
# Publish, on each release
- name: Publish AppImage
if: ${{ env.GITHUB_EVENT_NAME == 'release' || (env.GITHUB_EVENT_NAME == 'workflow_dispatch' && startsWith(github.ref, 'refs/tags/')) }}
run: |
gh release upload ${{ env.game_version }} ./Marble.AppImage