From 125da11d61eedbfb6c646327059364a535199a69 Mon Sep 17 00:00:00 2001 From: js6pak Date: Thu, 5 Aug 2021 12:50:37 +0200 Subject: [PATCH] [skip ci] Auto deploy github releases --- appveyor.yml | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index ce3b999..26740bb 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -20,11 +20,12 @@ image: Ubuntu2004 install: - git submodule update --init --recursive - - ps: dotnet tool restore + - dotnet tool restore build_script: - - ps: dotnet cake build.cake --bootstrap - - ps: dotnet cake build.cake --pack + - pwsh: if ($env:APPVEYOR_REPO_TAG_NAME) { Update-AppveyorBuild -Version "$($env:APPVEYOR_REPO_TAG_NAME -replace "v")" } + - dotnet cake build.cake --bootstrap + - dotnet cake build.cake --pack test: off @@ -34,13 +35,25 @@ artifacts: - path: ./build/*.nupkg - path: ./build/*.snupkg -# deploy: -# - provider: NuGet -# artifact: /.*(\.|\.s)nupkg/ -# on: -# branch: dev -# api_key: -# secure: 4OHXl+m1KVi60hB1j54MpdP8tVv0UNfkdF4rVP+2AhAjN4a2MVT+Bl90gJZ96xHF +deploy: + # - provider: NuGet + # artifact: /.*(\.|\.s)nupkg/ + # on: + # branch: master + # api_key: + # secure: 4OHXl+m1KVi60hB1j54MpdP8tVv0UNfkdF4rVP+2AhAjN4a2MVT+Bl90gJZ96xHF + + - provider: GitHub + tag: $(APPVEYOR_REPO_TAG_NAME) + release: $(APPVEYOR_PROJECT_NAME) $(APPVEYOR_BUILD_VERSION) + description: 'DRAFT' + auth_token: + secure: vyQ+zijv9g99wEgIdSC8uPSlnFvH3KZiD0yE7mNA3r3z2OY4lTEF6bpuUvtjoaM3 + artifact: /.*/ + draft: true + on: + branch: master + APPVEYOR_REPO_TAG: true only_commits: files: -- 2.39.5