Gate a full job on a tag-based release.
Section: Jobs, steps, and conditionals
Run a job only for tags
yaml
yaml
jobs:
release:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latestExplanation
Use job-level conditions when the whole job should be skipped.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Jobs, steps, and conditionals