-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (73 loc) · 2.29 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: steamy-build
env:
CORE_LOVE_PACKAGE_PATH: ./steamy.love
CORE_LOVE_ARTIFACT_NAME: core_steamy_package
LINUX_LOVE_ARTIFACT_NAME: Steamy_Linux_AppImage
PRODUCT_NAME: steamy
BUNDLE_ID: net.videah.steamy
DESCRIPTION: "Videah's Steamy Remote LÖVE Launcher"
OUTPUT_FOLDER: ./build
on:
push:
tags:
- '*'
jobs:
build-core:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Build core love package
uses: love-actions/love-actions-core@v1
with:
build-list: ./assets/ ./libs/ ./conf.lua ./main.lua ./init.lua
package-path: ${{ env.CORE_LOVE_PACKAGE_PATH }}
- name: Upload core love package
uses: actions/upload-artifact@v3
with:
name: ${{ env.CORE_LOVE_ARTIFACT_NAME }}
path: ${{ env.CORE_LOVE_PACKAGE_PATH }}
build-linux:
runs-on: ubuntu-latest
needs: [build-core]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
# Download core love package here
- name: Download core love package
uses: actions/download-artifact@v3
with:
name: ${{ env.CORE_LOVE_ARTIFACT_NAME }}
- name: Build Linux packages
id: build-packages
uses: love-actions/love-actions-linux@v1
with:
app-name: ${{ env.PRODUCT_NAME }}
bundle-id: ${{ env.BUNDLE_ID }}
description: ${{ env.DESCRIPTION }}
version-string: "1.0.1"
icon-path: ./assets/icon.png
love-package: ${{ env.CORE_LOVE_PACKAGE_PATH }}
product-name: ${{ env.PRODUCT_NAME }}
output-folder: ${{ env.OUTPUT_FOLDER }}
- name: Upload AppImage artifact
uses: actions/upload-artifact@v3
with:
name: ${{ env.LINUX_LOVE_ARTIFACT_NAME }}
path: ${{ env.OUTPUT_FOLDER }}/${{ env.PRODUCT_NAME }}.AppImage
release:
runs-on: ubuntu-latest
permissions:
contents: write
needs: [build-core, build-linux]
steps:
- name: Download Artifacts
uses: actions/download-artifact@v3
with:
path: ${{ env.OUTPUT_FOLDER }}
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: ${{ env.OUTPUT_FOLDER }}/*/*