Didstopia / PDFSharp

A .NET Standard 2.0 library for reading, writing and editing PDF files.
MIT License
52 stars 18 forks source link

Travis CI issues with tagged releases #34

Open Dids opened 5 years ago

Dids commented 5 years ago

Tagged releases break conditional support for Travis's stage system, which means that the tagged releases aren't getting pushed to nuget.org or to GitHub Releases.

More information here: https://github.com/travis-ci/beta-features/issues/40

Dids commented 5 years ago

From what I can tell, a tagged release simply breaks conditionals entirely, so we might just have to drop using conditionals for now, and see if we can just use bash/shell expressions to validate if it's the correct branch and a tagged release or not.

Dids commented 5 years ago

This just keeps getting better.

For some reason Travis itself has no idea what branch of tag it's using:

Skipping a deployment with the script provider because this branch is not permitted: v1.0.0-beta8
Skipping a deployment with the script provider because this is not a tagged commit
Dids commented 5 years ago

Looks like we might just need to account for the following:

The documentation now reflects that TRAVIS_BRANCH is set to the tag name when the build was initiated by a tag.

However, it seems also reasonable to me that TRAVIS_BRANCH should be empty for tag builds. I do wonder if this change would break existing builds, however.

Source: https://github.com/travis-ci/travis-ci/issues/4745#issuecomment-336594518