Skip to content

Commit

Permalink
Try to release the artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
alexchicn committed Dec 4, 2017
1 parent 6f964a9 commit 767250f
Show file tree
Hide file tree
Showing 4 changed files with 26,162 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
version: 1.0.{build}

build:
verbosity: minimal

Expand Down Expand Up @@ -59,3 +60,16 @@ build_script:
artifacts:
- name: $(appveyor_project_name)-v$(appveyor_build_version).$(platform)
path: output\**\*

deploy:
release: $(appveyor_project_name)-v$(appveyor_build_version).$(platform)
description: 'Release description'
provider: GitHub
auth_token:
secure: ih/53Vk05rS1HEbLOcCJhPwSZNXgqKFEuHjxbjKzgmvtVHPlnK4GBIXj3c6fu4zP
artifact: /.*\.nupkg/
draft: false
prerelease: false
on:
branch: master
appveyor_repo_tag: true
22 changes: 20 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@ language: cpp
matrix:
include:
- os: linux
env:
- DEPLOY_RELEASE=true
- os: linux
env:
- RUN_COVERALLS=true
- RUN_COVERALLS=true
- os: osx
env:
- DEPLOY_RELEASE=true

branches:
only:
- master
- master

install:
- if [ $RUN_COVERALLS == true ]; then pip install --user cpp-coveralls; fi
Expand All @@ -36,3 +40,17 @@ after_success:
- if [ $RUN_COVERALLS == true ]; then ./output/bin/linux/runtest --coveralls ./resource/example-2.0/TriangleWithoutIndices.gltf; fi
- if [ $RUN_COVERALLS == true ]; then ./output/bin/linux/runtest --coveralls ./resource/example-2.0/VC.gltf; fi
- if [ $RUN_COVERALLS == true ]; then coveralls --exclude ./external/ --exclude ./build/CMakeFiles/ --exclude ./output/include/ --gcov-options '\-lp'; fi

before_deploy:
- if [ $DEPLOY_RELEASE == true ]; then tar -czf libgltf.$TRAVIS_TAG.$TRAVIS_OS_NAME.tar.gz ./output/*; fi

deploy:
provider: releases
api-key:
secure: $GITHUB_OAUTH_TOKEN_ENCRYPTED
file: "libgltf.$TRAVIS_TAG.$TRAVIS_OS_NAME.tar.gz"
skip_cleanup: true
on:
condition: $DEPLOY_RELEASE=true
tags: true
all_branches: false

0 comments on commit 767250f

Please sign in to comment.