tcnksm / ghr

Upload multiple artifacts to GitHub Release in parallel

Home Page:http://tcnksm.github.io/ghr/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using ghr only on tagged commits with Travis CI

popstas opened this issue · comments

I understand that it not ghr's responsibility, but I cannot find this information.
Can I use ghr only when commit is tagged?

In standard travis deploy I can use:

deploy:
  on:
    tags: true

Sorry, found solution in travis deploy docs:

deploy:
  provider: script
  script: ghr --username popstas --token $GITHUB_TOKEN --replace --debug $(git tag -l --contains HEAD) dist/
  on:
    tags: true