Revive AppVeyor release builds, do not build through trigger

This commit is contained in:
timvisee 2019-03-05 07:59:54 +01:00
parent ae7e285879
commit f4702b7920
No known key found for this signature in database
GPG key ID: B8DB720BC383E172
2 changed files with 20 additions and 13 deletions

View file

@ -245,15 +245,15 @@ package-aur:
- git push - git push
- cd .. - cd ..
# Trigger a release build on AppVeyor, for a Windows binary # # Trigger a release build on AppVeyor, for a Windows binary
trigger-appveyor-release: # trigger-appveyor-release:
stage: package # stage: package
only: # only:
- "/^v([0-9]+\\.)*[0-9]+.*$/" # - "/^v([0-9]+\\.)*[0-9]+.*$/"
script: # script:
- apt-get install -y --no-install-recommends curl # - apt-get install -y --no-install-recommends curl
- export VERSION=$(echo $CI_COMMIT_REF_NAME | cut -c 2-) # - export VERSION=$(echo $CI_COMMIT_REF_NAME | cut -c 2-)
- 'curl -L -H "Content-Type: application/json" -H "Authorization: Bearer $APPVEYOR_TOKEN" -d "{\"accountName\":\"timvisee\",\"projectSlug\":\"ffsend\",\"tag\":\"$CI_COMMIT_REF_NAME\",\"environmentVariables\":{\"FFSEND_VERSION\":\"$VERSION\"}}" https://ci.appveyor.com/api/builds' # - 'curl -L -H "Content-Type: application/json" -H "Authorization: Bearer $APPVEYOR_TOKEN" -d "{\"accountName\":\"timvisee\",\"projectSlug\":\"ffsend\",\"tag\":\"$CI_COMMIT_REF_NAME\",\"environmentVariables\":{\"FFSEND_VERSION\":\"$VERSION\"}}" https://ci.appveyor.com/api/builds'
# # Snap release # # Snap release
# snap: # snap:

View file

@ -1,4 +1,10 @@
# Only build version tags
skip_non_tags: true skip_non_tags: true
branches:
only:
- /v\d*\.\d*\.\d*/
# Build for the x86_64 Windows target
platform: x64 platform: x64
environment: environment:
SSL_CERT_FILE: "C:\\OpenSSL\\cacert.pem" SSL_CERT_FILE: "C:\\OpenSSL\\cacert.pem"
@ -13,14 +19,15 @@ environment:
OPENSSL_VERSION: 1_1_0j OPENSSL_VERSION: 1_1_0j
OPENSSL_DIR: C:\OpenSSL OPENSSL_DIR: C:\OpenSSL
# Extract release binary artifacts
artifacts: artifacts:
- path: .\ffsend*.exe - path: .\ffsend*.exe
install: install:
# Quit early if FFSEND_VESRION is not available # # Quit early if FFSEND_VESRION is not available
# These builds must be started from a webhook, initiated by a release build on # # These builds must be started from a webhook, initiated by a release build on
# GitLab CI # # GitLab CI
- ps: if ([string]::IsNullOrEmpty($FFSEND_VERSION)) { Exit-AppveyorBuild } # - ps: if ([string]::IsNullOrEmpty($FFSEND_VERSION)) { Exit-AppveyorBuild }
# Install OpenSSL # Install OpenSSL
- mkdir C:\OpenSSL - mkdir C:\OpenSSL