You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Don't upload releases unless on primary branch #30
Note: the term master branch is avoided on purpose. Many projects use another branch as primary branch, e.g., AppImageKit uses appimagetool/master, AppImageUpdate uses rewrite at the moment.
In many projects, there's development ongoing in branches outside the primary branch. Not everyone is happy with n forks for n developers, and for e.g., your own projects, GitHub creates branches in the same repository during many operations like file editing.
In such scenarios, uploadtool should not upload binaries to GitHub releases when Travis builds those branches. Instead, it should follow the PR strategy, and upload the binaries to https://transfer.sh (or some other location, see #28).
My current workaround in many projects is a line in the .travis.yml:
Activity
TheAssassin commentedon Feb 8, 2018
The GitHub API returns a
default_branch:field in therepoAPI:https://api.github.com/repos/AppImage/AppImageKit
probonopd commentedon Feb 10, 2018
Yes, this would be a very useful feature.