-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (36 loc) · 1.03 KB
/
package.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
name: Package
on:
push:
workflow_dispatch:
schedule:
- cron: '0 0 1 * *' # every month
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Environments
run: |
echo "SM_VERSION=1.12" >> $GITHUB_ENV
echo "PLUGIN_VERSION_REVISION<<EOF" >> $GITHUB_ENV
git rev-list --count HEAD >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- name: Install
run: |
bash scripts/install.sh
- name: Set Version
run: |
bash scripts/version.sh
- name: Compile
run: |
cd build/addons/sourcemod/scripting
./spcomp vscript.sp -o ../plugins/vscript.smx
- name: Package
run: |
bash scripts/package.sh
- name: Upload Artifacts
uses: actions/upload-artifact@master
with:
name: VScript-${{env.PLUGIN_VERSION}}.${{env.PLUGIN_VERSION_REVISION}}
path: ./build/package