![appveyor deploy to visual studio marketplace appveyor deploy to visual studio marketplace](https://imag.malavida.com/mvimgbig/download-fs/visual-studio-2010-6538-5.jpg)
# Change this to your encrypted token value secure: xxxxx on: provider: GitHub # it should be possible to use a regexp like this /msi.*/, # but I could not make it work, let me know if you find a solution artifact: msi-x86, msi-圆4 draft: false prerelease: false description: "Release " auth_token: path: '*-amd64.msi ' name: msi-圆4 # deploy section to github releases deploy: jfrog bt upload -user %GH_USER% -key %BT_KEY% -override=true -publish=true %GH_APP%.%VERSION%.nupkg %GH_USER%/choco/%GH_APP%/%VERSION% # to disable automatic tests test: off # need this to deploy assets, # note that each MUST match only one file artifacts:
#APPVEYOR DEPLOY TO VISUAL STUDIO MARKETPLACE PC#
never-fail jfrog bt pc -user %GH_USER% -key %BT_KEY% -licenses=MIT -vcs-url= %GH_USER%/choco/%GH_APP% jfrog bt upload -user %GH_USER% -key %BT_KEY% -override=true -publish=true %GH_APP%-%GOARCH%-%VERSION%.msi %GH_USER%/msi/%GH_APP%/%VERSION% never-fail jfrog bt pc -user %GH_USER% -key %BT_KEY% -licenses=MIT -vcs-url= %GH_USER%/msi/%GH_APP% choco push -k="'%CHOCOKEY%'" %GH_APP%.%VERSION%.nupkg # Bintray push \go-msi.exe choco -input %GH_APP%-%GOARCH%.msi -version %VERSION% -changelog-cmd "changelog ghrelease -version %VERSION%" \go-msi.exe make -msi %GH_APP%-%GOARCH%.msi -version %VERSION% -arch %GOARCH% after_deploy: \go-msi.exe make -msi %GH_APP%-%GOARCH%.msi -version %VERSION% -arch %GOARCH% go build -o %MYAPP%.exe -ldflags "-X main.VERSION=%VERSION%" main.go set VERSION=%APPVEYOR_REPO_TAG_NAME% # - set VERSION=1.0.2 # fake it when needed
![appveyor deploy to visual studio marketplace appveyor deploy to visual studio marketplace](https://farm8.staticflickr.com/7883/40326503893_58116c2328_o.png)
# method 2: via gh-api-cli # - curl -fsSL -o C:\latest.bat # - cmd /C C:\latest.bat mh-cbon go-msi amd64 # - set PATH=C:\Program Files\go-msi\ %PATH% # method 3: via chocolatey go get -u /Masterminds/glide # setup go-msi, choose one method # method 1: static link # - curl -fsSL -o C:\go-msi.msi # - msiexec.exe /i C:\go-msi.msi /quiet # - set PATH=C:\Program Files\go-msi\ %PATH% # for some reason, go-msi path needs to be added manually :(. set PATH=%GOPATH%\bin %PATH% # glide setup, if your package uses it GOPATH: c:\gopath JFROG_CLI_OFFER_CONFIG: false VCS_URL: BT_KEY: Image: Visual Studio 2017 clone_folder: c:\gopath\src\\%APPVEYOR_REPO_NAME% # trigger build/deploy only on tag # if false, take care that %APPVEYOR_REPO_TAG_NAME% won t be set on commit # this will fail the build skip_non_tags: true environment: