-
Notifications
You must be signed in to change notification settings - Fork 39
62 lines (54 loc) · 1.54 KB
/
build-appimage.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Build and Package AppImage
on:
push:
branches:
- main
- master
- appimage
pull_request:
branches:
- main
- master
- appimage
jobs:
build-appimage:
runs-on: ubuntu-22.04
steps:
# Checkout the repository
- name: Checkout repository
uses: actions/checkout@v3
# Set up dependencies
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential cmake libgl1-mesa-dev libglu1-mesa-dev \
libsdl2-dev libsdl2-net-dev zlib1g-dev
# Build Supermodel
- name: Build Supermodel
run: |
cd ./AppImage
./build_app_image.sh
- name: Delete Existing latest Release
run: |
gh release delete latest -y || true
gh api -X DELETE /repos/${{ github.repository }}/git/refs/tags/latest || true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Create release as the "latest" tag
- name: Create Release
id: create_release
uses: actions/create-release@v1
with:
tag_name: latest
release_name: "Supermodel Release latest"
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload AppImage
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./AppImage/Supermodel-x86_64.AppImage
asset_name: Supermodel-x86_64.AppImage
asset_content_type: application/octet-stream