Browse Source

AppVeyor CI: Fix before_deploy script

cl-refactor
Paweł Bylica 8 years ago
parent
commit
ffad3a55b6
No known key found for this signature in database GPG Key ID: 7A0C037434FE77EF
  1. 2
      .bumpversion.cfg
  2. 4
      CMakeLists.txt
  3. 18
      appveyor.yml
  4. 2
      cmake/variables.ps.in
  5. 2
      cmake/variables.ps1.in
  6. 4
      cmake/variables.sh.in

2
.bumpversion.cfg

@ -1,5 +1,5 @@
[bumpversion] [bumpversion]
current_version = 0.10.0rc8 current_version = 0.10.1
commit = True commit = True
tag = True tag = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(rc(?P<rc>\d+))? parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(rc(?P<rc>\d+))?

4
CMakeLists.txt

@ -15,7 +15,7 @@ HunterGate(
project(ethminer) project(ethminer)
set(PROJECT_VERSION 0.10.0rc8) set(PROJECT_VERSION 0.10.1)
# link_directories interprate relative paths with respect to CMAKE_CURRENT_SOURCE_DIR # link_directories interprate relative paths with respect to CMAKE_CURRENT_SOURCE_DIR
cmake_policy(SET CMP0015 NEW) cmake_policy(SET CMP0015 NEW)
@ -142,4 +142,4 @@ else()
endif() endif()
message("Prerelease: ${PROJECT_VERSION_IS_PRERELEASE}") message("Prerelease: ${PROJECT_VERSION_IS_PRERELEASE}")
configure_file(cmake/variables.sh.in variables.sh) configure_file(cmake/variables.sh.in variables.sh)
configure_file(cmake/variables.ps.in variables.ps) configure_file(cmake/variables.ps1.in variables.ps1)

18
appveyor.yml

@ -21,17 +21,19 @@ artifacts:
name: ethminer name: ethminer
before_deploy: before_deploy:
- . build/variables.ps # Read variables dumped by CMake configuration.
- echo ethminer $ethminer_version (prerelease $ethminer_version_is_prerelease) - ps: . build/variables.ps1
deploy: deploy:
release: ethminer $ethminer_version # Create GitHub release, also set the release name and description.
description: ''
provider: GitHub provider: GitHub
tag: $(appveyor_repo_tag_name)
release: ethminer $(ethminer_version)
description: ''
force_update: true # Force update in case Travis CI created the release before.
prerelease: $(ethminer_version_is_prerelease)
draft: false
artifact: ethminer
auth_token: auth_token:
secure: uDRcvbW+9GIyKlZ9guJfWOQ6jg0An6eULg6mEkYgdKn/GVNpYSKvO5oHxP0U8a+e secure: uDRcvbW+9GIyKlZ9guJfWOQ6jg0An6eULg6mEkYgdKn/GVNpYSKvO5oHxP0U8a+e
artifact: ethminer
draft: true
prerelease: $ethminer_version_is_prerelease
force_update: false
on: on:
appveyor_repo_tag: true appveyor_repo_tag: true

2
cmake/variables.ps.in

@ -1,2 +0,0 @@
$ethminer_version=@PROJECT_VERSION@
$ethminer_version_is_prerelease=@PROJECT_VERSION_IS_PRERELEASE@

2
cmake/variables.ps1.in

@ -0,0 +1,2 @@
$env:ethminer_version="@PROJECT_VERSION@"
$env:ethminer_version_is_prerelease="@PROJECT_VERSION_IS_PRERELEASE@"

4
cmake/variables.sh.in

@ -1,2 +1,2 @@
ETHMINER_VERSION=@PROJECT_VERSION@ ETHMINER_VERSION='@PROJECT_VERSION@'
ETHMINER_VERSION_IS_PRERELEASE=@PROJECT_VERSION_IS_PRERELEASE@ ETHMINER_VERSION_IS_PRERELEASE='@PROJECT_VERSION_IS_PRERELEASE@'
Loading…
Cancel
Save