Skip to content

Commit ad77b1c

Browse files
committed
ci(workflows): update build script for date consistency in tag names
Added a step to set and use a consistent date variable for tagging development releases, improving the reliability of versioning in the CI workflow.
1 parent 3a06d8b commit ad77b1c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/dev-build.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,15 @@ jobs:
3737
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3838
CGO_ENABLED: 0 # Disable CGO for better cross-compilation compatibility
3939

40+
- name: Set date
41+
id: date
42+
run: echo "DATE=$(date +'%Y%m%d%H%M')" >> $GITHUB_OUTPUT
43+
4044
- name: Create/Update Development Release
4145
uses: softprops/action-gh-release@v1
4246
with:
4347
name: Development Build
44-
tag_name: v0.0.0-dev.$(date +'%Y%m%d%H%M')
48+
tag_name: v0.0.0-dev.${{ steps.date.outputs.DATE }}
4549
files: dist/*
4650
prerelease: true
4751
body: |

0 commit comments

Comments
 (0)