From 13fe3583db6cdf82e39ec6cc6954eea321b5c819 Mon Sep 17 00:00:00 2001 From: Tyler Date: Wed, 22 May 2019 00:14:42 -0400 Subject: [PATCH] Fix build config --- .drone.yml | 12 ++++++++++-- version.txt | 1 + 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 version.txt diff --git a/.drone.yml b/.drone.yml index 86c4498..ff45293 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,6 +9,14 @@ steps: image: golang commands: - GOOS=windows GOARCH=amd64 go build -o /tmp/build/remote-server.exe + - name: package + volumes: + - name: cache + path: /tmp/build + image: alpine:latest + commands: + - apk add --update zip + - zip -r /tmp/build/remote-server.zip remote-server.exe - name: release volumes: - name: cache @@ -19,8 +27,8 @@ steps: from_secret: gitea_token commands: - apk add --update curl - - export VERSION=`cat /tmp/build/version.txt` - - curl -F "server=https://git.meow.tf" -F "token=$TOKEN" -F "repo=$DRONE_REPO" -F "name=v$VERSION" -F "tag_name=v$VERSION" -F "commit=$DRONE_COMMIT" -F "assets[]=@/tmp/build/remote-server.exe" https://api.meow.tf/gitea/release/publish + - export VERSION=`cat version.txt` + - curl -F "server=https://git.meow.tf" -F "token=$TOKEN" -F "repo=$DRONE_REPO" -F "name=v$VERSION" -F "tag_name=v$VERSION" -F "commit=$DRONE_COMMIT" -F "assets[]=@/tmp/build/remote-server.zip" https://api.meow.tf/gitea/release/publish volumes: - name: cache diff --git a/version.txt b/version.txt new file mode 100644 index 0000000..d2d61a7 --- /dev/null +++ b/version.txt @@ -0,0 +1 @@ +1.2.2 \ No newline at end of file