From 51ed2ff79c45b1f55fbc5a3e5b1a01d4f2c6dcd2 Mon Sep 17 00:00:00 2001 From: Anairkoen Schno Date: Tue, 16 Jul 2019 23:58:04 -0500 Subject: [PATCH] Changed some stuff for AppVeyor builds --- appveyor.yml | 120 +++++++++++++++++++++++++++------------------------ 1 file changed, 63 insertions(+), 57 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 3133f7f4..3dfc1d80 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -4,7 +4,11 @@ environment: bsipa_version: '3.12.24' gh_token: secure: E42gl/yepETuoLSwbJZ1GmEIPK6cCJu6zkd59NA21XiICtEV6COOLW7aehi1tcVU - BUILD_DOCS: 'no' + + matrix: + BUILD_DOC: + - 'yes' + - 'no' pull_requests: do_not_increment_build_number: true @@ -30,66 +34,24 @@ platform: artifacts: - path: IPA/bin/$(configuration) name: BSIPA-$(platform) - -for: -- - matrix: - only: - - configuration: Release - platform: x64 - environment: - BUILD_DOCS: 'yes' - artifacts: - path: BSIPA-ModList/bin/$(configuration) name: ModList -branches: - except: - - gh-pages - -cache: - - '%LocalAppData%\NuGet\v3-cache' # NuGet v3 - -build: - verbosity: normal - project: BSIPA.sln - -skip_tags: false - -deploy: -- provider: GitHub - release: BSIPA $(bsipa_version)-draft - tag: $(bsipa_version)-d - description: | - **Build:** [$(bsipa_version)-$(APPVEYOR_BUILD_NUMBER)](https://ci.appveyor.com/project/nike4613/beatsaber-ipa-reloaded-9smsb/builds/$(APPVEYOR_BUILD_ID)) [$(configuration)|$(platform)] - **Latest Commit:** $(APPVEYOR_REPO_COMMIT) - - `$(APPVEYOR_REPO_COMMIT_MESSAGE)` - - `$(APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED)` - auth_token: - secure: KhF3q/zWEFwrW0QeZLqE3NAkWR4u9iVhsmcyzXvwwJ28fUy+MzW4CWBx3RxNM60t - artifact: /.*\.zip/ - draft: true - force_update: true - on: - branch: master - APPVEYOR_REPO_TAG: false - -- provider: GitHub - release: -ignore- - tag: create_tag - description: | - **Build:** [$(bsipa_version)-$(APPVEYOR_BUILD_NUMBER)](https://ci.appveyor.com/project/nike4613/beatsaber-ipa-reloaded-9smsb/builds/$(APPVEYOR_BUILD_ID)) - auth_token: - secure: KhF3q/zWEFwrW0QeZLqE3NAkWR4u9iVhsmcyzXvwwJ28fUy+MzW4CWBx3RxNM60t - draft: true - force_update: true - on: - branch: master - APPVEYOR_REPO_TAG: true +matrix: + exclude: + #- BUILD_DOC: 'yes' # Add one of these for most configuration sets, so we don't dupe + # configuration: Release + # platform: x64 -before_deploy: +for: +- + matrix: + except: + - BUILD_DOC: 'no' + build: off + after_build: - ps: | - if ($env:APPVEYOR_REPO_BRANCH -eq 'master' -and $env:BUILD_DOCS -eq 'yes') + if ($env:APPVEYOR_REPO_BRANCH -eq 'master') { cd docs @@ -111,7 +73,7 @@ before_deploy: & docfx metadata & docfx build --globalMetadataFiles link_branch.json @Args if ($lastexitcode -ne 0){ - throw [System.Exception] "docfx build failed with exit code $lastexitcode." + throw [System.Exception] "docfx build failed with exit code $lastexitcode." } } @@ -145,3 +107,47 @@ before_deploy: git push -q origin gh-pages 2>&1 } + +branches: + except: + - gh-pages + +cache: + - '%LocalAppData%\NuGet\v3-cache' # NuGet v3 + +build: + verbosity: normal + project: BSIPA.sln + +skip_tags: false + +deploy: +- provider: GitHub + release: BSIPA $(bsipa_version)-draft + tag: $(bsipa_version)-d + description: | + **Build:** [$(bsipa_version)-$(APPVEYOR_BUILD_NUMBER)](https://ci.appveyor.com/project/nike4613/beatsaber-ipa-reloaded-9smsb/builds/$(APPVEYOR_BUILD_ID)) [$(configuration)|$(platform)] + **Latest Commit:** $(APPVEYOR_REPO_COMMIT) + - `$(APPVEYOR_REPO_COMMIT_MESSAGE)` + - `$(APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED)` + auth_token: + secure: KhF3q/zWEFwrW0QeZLqE3NAkWR4u9iVhsmcyzXvwwJ28fUy+MzW4CWBx3RxNM60t + artifact: /.*\.zip/ + draft: true + force_update: true + on: + branch: master + APPVEYOR_REPO_TAG: false + +- provider: GitHub + release: -ignore- + tag: create_tag + description: | + **Build:** [$(bsipa_version)-$(APPVEYOR_BUILD_NUMBER)](https://ci.appveyor.com/project/nike4613/beatsaber-ipa-reloaded-9smsb/builds/$(APPVEYOR_BUILD_ID)) + auth_token: + secure: KhF3q/zWEFwrW0QeZLqE3NAkWR4u9iVhsmcyzXvwwJ28fUy+MzW4CWBx3RxNM60t + draft: true + force_update: true + on: + branch: master + APPVEYOR_REPO_TAG: true