From 007701701b56c647dcd95598c0b0c214f2677250 Mon Sep 17 00:00:00 2001 From: yuriy0803 <68668177+yuriy0803@users.noreply.github.com> Date: Fri, 28 Apr 2023 17:28:08 +0200 Subject: [PATCH] Update appveyor.yml --- appveyor.yml | 43 +++++++++++++++++++++++++++++++++++-------- 1 file changed, 35 insertions(+), 8 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 767cb8f..b905377 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,14 +1,41 @@ -build: off +version: 1.0.0.{build} -clone_folder: /usr/go/src/github.com/$username/$project +platform: x64 + +branches: + only: + - master + +clone_folder: c:\gopath\src\github.com\account\myproject environment: - GOPATH: /usr/go/ + GOPATH: c:\gopath + +install: + - echo %PATH% + - echo %GOPATH% + - set PATH=%GOPATH%\bin;c:\go\bin;%PATH% + - go version + - go env + +build_script: + - go build -o buildOutput\myapp -i . -stack: go 1.18 +build_script: + - ps: .\build.ps1 -before_test: - - go vet ./... +artifacts: + - path: buildOutput/myapp + name: binary -test_script: - - go test ./... +deploy: + release: myapp-$(appveyor_build_version) + description: 'This is a release of my awesome application.' + provider: GitHub + auth_token: + secure: FW3tJ3fMncxvs58/ifSP7w+kBl9BlxvRMr9liHmnBs14ALRG8Vfyol+sNhj9u2JA + artifact: binary # This is the name we specified in the artifacts section. + draft: false + prerelease: false + on: + branch: master