リリースにタグを付ける (Tag a Release) - CI/CD用語集の定義
リリースにタグを付けると、v1.4.0 のようなバージョンラベルを特定の commit に付与し、それをその正確なリリースとしてマークします。
リリースにタグを付ける (Tag a Release) とは、特定の commit にバージョンラベル (v1.4.0 のような Git tag) を付与し、その commit をそのリリースとして恒久的に識別可能にすることです。
リリース tag はリリースを不変の commit に固定します。GitHub Actions では、v* に一致する tag を push することが、artifacts を build して GitHub Release を公開する一般的な trigger です。
tag で trigger する
on: push: tags: ["v*"] を使うと、バージョン tag が push されたときだけ workflow が実行されます。そして actions/checkout をその tag の ref で使い、その tag から build して公開します。
.github/workflows/release.yml
on:
push:
tags:
- "v*"関連ガイド
Cut a Release - CI/CD Glossary DefinitionCut a Release: To cut a release is to create the specific, versioned build (often by branching and tagging) t…
Release Notes - CI/CD Glossary DefinitionRelease Notes: Release notes are a human-readable summary of what changed in a release: new features, fixes,…
Semantic Versioning - CI/CD Glossary DefinitionSemantic Versioning: Semantic versioning (SemVer) is a version scheme of MAJOR.MINOR.PATCH where MAJOR marks…