-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (29 loc) · 1.08 KB
/
release.yaml
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
name: Build and Release SourceMod Plugin
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup SourceMod
run: |
wget https://sm.alliedmods.net/smdrop/1.11/sourcemod-1.11.0-git6968-linux.tar.gz
tar -xzf sourcemod-*.tar.gz
git clone https://github.com/Bara/Multi-Colors.git
- name: Build plugin
run: |
mkdir -p build
addons/sourcemod/scripting/spcomp64 l4d2_tank_draw/scripting/l4d2_tank_draw.sp -o build/l4d2_tank_draw.smx -i ./Multi-Colors/addons/sourcemod/scripting/include
addons/sourcemod/scripting/spcomp64 l4d2_tank_draw/scripting/l4d2_tank_trigger.sp -o build/l4d2_tank_trigger.smx -i ./Multi-Colors/addons/sourcemod/scripting/include
- name: Release
uses: softprops/action-gh-release@v2
with:
draft: false
files: |
build/*.smx
generate_release_notes: true
token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}