Skip to content

Commit b1c5eb2

Browse files
committed
ci: zero-pad build tags to 5 digits
1 parent f12f274 commit b1c5eb2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
run: |
2525
$count = git rev-list --count HEAD
2626
$sha = git rev-parse --short=8 HEAD
27-
$tag = "b$count"
27+
$tag = ('b{0:D5}' -f [int]$count)
2828
"count=$count" >> $env:GITHUB_OUTPUT
2929
"sha=$sha" >> $env:GITHUB_OUTPUT
3030
"tag=$tag" >> $env:GITHUB_OUTPUT

MultistageOptimizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Filename: MultistageOptimizer.cpp
33
Description : Calculate optimal mass for each stage given a DeltaV requirement on a multistage Rocket
44
Source of math equations : http://www.projectrho.com/public_html/rocket/multistage.php
55
Author: Florian Zimmer
6-
Version : rolling (see GitHub prereleases: b<commit-count>)
6+
Version : rolling (see GitHub releases: b<commit-count> padded to 5 digits)
77
Last Changed : 31.03.2021
88
Legacy changelog (pre-continuous releases):
99
0.1 basic functionality/port from python project

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@ Benchmark runs also append a CSV row to `benchmark_results.csv` (override with `
124124

125125
## Releases (continuous builds)
126126

127-
GitHub Actions publishes rolling prereleases for every commit to `main`/`master`:
127+
GitHub Actions publishes rolling releases for every commit to `main`/`master`:
128128

129-
- Tag format: `b<commit-count>` (for example `b123`).
130-
- Assets: `MultistageOptimizer-windows-x64-b<commit-count>.zip` containing `MultistageOptimizer.exe` + sample `config/`.
129+
- Tag format: `b<commit-count>` zero-padded to 5 digits (for example `b00123`).
130+
- Assets: `MultistageOptimizer-windows-x64-b00123.zip` containing `MultistageOptimizer.exe` + sample `config/`.
131131

132132
## Limitations
133133

0 commit comments

Comments
 (0)