Skip to content

Latest commit

Β 

History

History
226 lines (167 loc) Β· 4.16 KB

example-workflow.md

File metadata and controls

226 lines (167 loc) Β· 4.16 KB

Step 1 β€” Prepare 1.0.3

./scripts/prepare-release.sh 1.0.3

The script should finish by showing:

Previous version: 1.0.2
New version: 1.0.3
Release date: 2026-08-28

Step 2 β€” Review

Very important:

git diff -- CHANGELOG.md v4l2loopback.spec

And also:

git diff --check

Specifically check:

grep '^Version:' v4l2loopback.spec

It should return:

Version: 1.0.3

And:

grep -n '## \[1.0.3\]' CHANGELOG.md

It should find:

## [1.0.3] - 2026-08-28
Step 3 β€” Commit release
git add CHANGELOG.md v4l2loopback.spec
git commit -m "chore: prepare v1.0.3 release"

Step 4 β€” push main

git push origin main

This is important.

It should produce:

main β”‚ β”œβ”€β”€ ShellCheck βœ… β”‚ └── RPM Build βœ…

For this new 1.0.3 commit.

The actions that have already occurred tell us that the infrastructure is working, but after changing:

Version: 1.0.2 ↓ Version: 1.0.3

it's advisable to specifically validate the release commit.

Step 5 β€” verify before the tag

When these actions occur:

git status

should be clean.

Next:

git log -1 --oneline

It should look something like this:

abcdef1 chore: prepare v1.0.3 release

And check that the local and remote commits are exactly the same:

git rev-parse HEAD
git rev-parse origin/main

They should produce the same SHA.

Step 6 β€” Create the tag

The script currently recommends:

git tag -a v1.0.3 -m "v1.0.3"

That's fine.

If you want to keep signed GPG tags:

git tag -s v1.0.3 -m "v1.0.3"

Then:

git show v1.0.3

Step 7 β€” PUSHING THE TAG = PUBLISHING

git push origin v1.0.3

This is what happens:

git push origin v1.0.3

This is what happens:

             git push origin v1.0.3
                      β”‚
                      β–Ό
             push tag v1.0.3
                      β”‚
                      β–Ό
             β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
             β”‚   release.yml   β”‚
             β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                      β”‚
                      β”œβ”€β”€ validate tag
                      β”‚
                      β”œβ”€β”€ SPEC == 1.0.3
                      β”‚
                      β”œβ”€β”€ CHANGELOG == 1.0.3
                      β”‚
                      β”œβ”€β”€ extract notes
                      β”‚
                      β”œβ”€β”€ verify remote tag
                      β”‚
                      β–Ό
             GitHub Release
                  v1.0.3

Paso 8 β€” check

gh run list --limit 10

and then:

gh release view v1.0.3

And:

git ls-remote --tags origin v1.0.3

Review:

                RELEASE v1.0.3

Infrastructure β”‚ β”œβ”€β”€ shellcheck.yml ........ βœ… β”œβ”€β”€ rpm-build.yml ......... βœ… β”œβ”€β”€ release.yml ........... βœ… reviewed └── prepare-release.sh .... βœ… reviewed β”‚ β–Ό ./prepare-release.sh 1.0.3 β”‚ β–Ό review git diff β”‚ β–Ό commit release β”‚ β–Ό push main β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β–Ό β–Ό ShellCheck βœ… RPM Build βœ… β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β–Ό tag v1.0.3 β”‚ β–Ό git push origin v1.0.3 β”‚ β–Ό release.yml β”‚ β–Ό GitHub Release v1.0.3