question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create a tag-test-deploy workflow for releases

See original GitHub issue

Observed behaviour

Releases have to be done by hand. Eww, hands.

Expected behaviour

The release manager tags a commit he wants to release and the CI/CD service (Travis) tests the code and deploys a source ball to PyPI.

To make things easier, the setuptools_scm package is used to determine the version from a Git tag automatically, so you don’t have to change any number anywhere else (so much easier!).

Resources and exact process needed to replicate

I’d point to https://github.com/fonttools/ttfautohint-py/blob/master/.travis.yml for an example, but that one is a bit complicated due to building a special binary wheel. I think you get the idea from the last deploy: thing though.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
anthrotypecommented, Mar 26, 2018

another thing that setuptools_scm does besides computing a version string from the git tags, is using git to get the list of all the files under version control and use that to automatically make the manifest for the source distribution package. No need to manually update the MANIFEST.in with weird globs. Git knows already.

0reactions
madigcommented, Apr 6, 2018

Wargh. I forgot the automatic deploy step.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Release CI/CD examples - GitLab Docs
Create a release when a Git tag is created ... In this CI/CD example, the release is triggered by one of the following...
Read more >
Setting up Automated Release Workflow with GitHub Actions
Release Process Overview. Tests. The first thing that we want to do before release a new version of the software is to make...
Read more >
Tip 9: Creating a GitHub release in a GitHub Actions workflow
Let's finish up this workflow by distributing our content as a GitHub release. We will create a GitHub release, version it, and then...
Read more >
GitHub Actions — Run a Workflow When Creating a Tag
We use a handy workflow to publish our packages to the GitHub Package Registry in our repositories. The “publish workflow” only runs when ......
Read more >
A successful deploy workflow using Git tags and a changelog
The CHANGELOG.md in master should have a list of all the features from the last release and will help the product owner creating...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found