-
Notifications
You must be signed in to change notification settings - Fork 5
50 lines (40 loc) · 1.25 KB
/
makefile.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
name: Makefile CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Update version.lua
run: |
rm src/Lua/version.lua
printf "local commit_sha = \"${{ github.sha }}\"\n\nreturn commit_sha" > src/Lua/version.lua
- name: Make date
run: echo "BUILD_DATE=$(git rev-parse --abbrev-ref HEAD)-$(date +%Y-%m-%d)" >> $GITHUB_ENV
- name: Install dependencies
run: |
sudo apt-get install -y nodejs
sudo npm install argparse
sudo npm install deasync
sudo npm install jimp
sudo npm install jszip
git clone https://github.com/UnmatchedBracket/PaK3.git
- name: Make build
run: |
mkdir build
node PaK3/main.js src/ build/SaxasMM-${{ env.BUILD_DATE }}.pk3
- name: Upload build to Actions
uses: actions/upload-artifact@v4
with:
name: MurderMystery
path: build/SaxasMM-${{ env.BUILD_DATE }}.pk3
- name: Upload build to Discord
uses: sinshutu/upload-to-discord@master
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
with:
args: build/SaxasMM-${{ env.BUILD_DATE }}.pk3