-
Notifications
You must be signed in to change notification settings - Fork 16
56 lines (46 loc) · 1.47 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
name: StAC Autobuild
# modified from https://github.com/nosoop/NinjaBuild-SMPlugin/blob/master/contrib/github-workflow/build-on-version-tag-push.yml
on:
push:
tags:
- 'v*'
jobs:
run:
name: Run action
runs-on: ubuntu-latest
# skip build on '[ci skip]'
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup SourcePawn Compiler
uses: rumblefrog/setup-sp@master
with:
version: "1.11.x"
- name: Compile plugins
run: |
pwd
spcomp -i"./addons/sourcemod/scripting/include/" addons/sourcemod/scripting/mge.sp -o ./addons/sourcemod/plugins/mge.smx
ls -la
- name: Download maps that are too large to put on github
run: |
cd maps
wget "https://sappho.io/files/tf/maps/mge_chillypunch_final4_fix2.bsp" || exit 1
echo "eae52bc16d6cb872938e67b4fc9b845c9f227e5d444614254465fe6530480a0e mge_chillypunch_final4_fix2.bsp" | sha256sum -c || exit 2
- name: Zip packages
run: |
mkdir build
7za a -r build/mge.zip addons/ maps/
ls -la
pwd
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
./build/mge.zip
fail_on_unmatched_files: true
generate_release_notes: true
# if: contains(github.ref, 'beta')
# prerelease: true