-
Notifications
You must be signed in to change notification settings - Fork 1
72 lines (60 loc) · 1.5 KB
/
build-love-file.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
name: Create .love file and build to .exe
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
branches:
- main
jobs:
create-love:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install zip utility
run: sudo apt-get install zip -y
- name: Create .love file
run: |
zip -r game.love *
mv game.love ${GITHUB_REPOSITORY#*/}-$(date +%Y%m%d%H%M%S).love
- name: Upload .love file as artifact
uses: actions/upload-artifact@v2
with:
name: .LOVE file
path: |
*.love
convert-love:
runs-on: ubuntu-latest
needs: create-love
steps:
- name: Download .love file from previous job
uses: actions/download-artifact@v2
with:
name: .LOVE file
path: .
- name: Install zip utility
run: sudo apt-get install zip -y
- name: Download LOVE.exe
run: |
mkdir love
cd love
curl -L -o love-win.zip https://github.com/love2d/love/releases/download/11.5/love-11.5-win64.zip
unzip love-win.zip
mv love-11.5-win64/* .
cd ..
- name: Create .exe file
run: |
cp love/love.exe game.exe
cat ${GITHUB_REPOSITORY#*/}-*.love >> game.exe
cp love/*.dll .
- name: Upload .exe file as artifact
uses: actions/upload-artifact@v2
with:
name: Game Build
path: |
game.exe
*.dll