-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
41 lines (34 loc) · 811 Bytes
/
.travis.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
dist: focal
# Only the main branch and tags
branches:
only:
- /^v\d+\.\d+\.\d+.*$/
language: node_js
node_js:
- 13
# Install pre-requisites
before_install:
- sudo apt-get install luarocks
- sudo luarocks install moonscript
- wget https://github.com/NotMyWing/gmad/releases/download/latest/gmad
- sudo chmod 777 gmad
# Check if all necessary env. variables are set
before_script:
- gulp travisChecks
# Build the game mode and run post-build tasks.
script:
- . .travis.sh
deploy:
# Deploy release
- provider: releases
edge: true
skip_cleanup: true
token: "$GITHUB_TOKEN"
release_notes_file: dest/changelog.md
overwrite: true
file:
- ./dest/$DEST_ARCHIVE.zip
- ./dest/$DEST_GMA.gma
on:
tags: true
condition: $TAGGED_RELEASE = true