2019-08-07 02:11:01 +02:00
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- stage: deploy
|
2019-08-30 03:24:45 +02:00
|
|
|
go: 1.x
|
2019-08-07 02:11:01 +02:00
|
|
|
language: minimal
|
|
|
|
before_install:
|
|
|
|
- docker build -f "docker/Dockerfile-build" -t factorio-server-manager docker
|
|
|
|
script:
|
2020-01-29 01:32:11 +02:00
|
|
|
- pwd
|
2020-01-29 01:35:15 +02:00
|
|
|
- echo ~
|
2020-01-29 01:39:04 +02:00
|
|
|
- mkdir -p /home/travis/build/mroote/build
|
2019-08-07 02:11:01 +02:00
|
|
|
- docker run -t -e FAC_BRANCH=$TRAVIS_BRANCH -v /home/travis/build/mroote/build:/build factorio-server-manager
|
2019-08-08 02:05:26 +02:00
|
|
|
- mv /home/travis/build/mroote/build/factorio-server-manager-linux.zip /home/travis/factorio-server-manager-linux-${TRAVIS_TAG}.zip
|
|
|
|
- mv /home/travis/build/mroote/build/factorio-server-manager-windows.zip /home/travis/factorio-server-manager-windows-${TRAVIS_TAG}.zip
|
|
|
|
deploy:
|
|
|
|
provider: releases
|
2019-08-08 02:26:43 +02:00
|
|
|
api_key: "${GITHUB_TOKEN}"
|
|
|
|
draft: true
|
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
tags: true
|
2019-08-08 02:05:26 +02:00
|
|
|
file:
|
|
|
|
- /home/travis/factorio-server-manager-linux-${TRAVIS_TAG}.zip
|
|
|
|
- /home/travis/factorio-server-manager-windows-${TRAVIS_TAG}.zip
|