How to deploy to github with file pattern on travis?

我与影子孤独终老i 提交于 2019-11-28 21:08:05

Wildcards are supported by now if you enable the file_glob option. This is how I deploy a build .deb file to GitHub releases:

before_deploy:
  - export RELEASE_PKG_FILE=$(ls *.deb)
  - echo "deploying $RELEASE_PKG_FILE to GitHub releases"
deploy:
  provider: releases
  api_key:
    secure: YOUR_ENCRYPTED_API_KEY
  file_glob: true
  file: "${RELEASE_PKG_FILE}"
  on:
    tags: true

Setting up is easy by executing travis setup releases with a dummy filename and modifying .travis.yml afterwards.

deploy:
  file_glob: true
  file: "build/distributions/worktrail-app-hub-sync*.zip"

example

Sorry, wildcard patterns don't work at the moment, but we'll have a look into making that possible on Travis CI.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!