ci: improve release workflow by adding task installation step

This commit is contained in:
Prad Nukala
2025-01-01 15:12:46 -05:00
parent 9787394d5a
commit 0cf308016b
3 changed files with 29 additions and 1 deletions
+19
View File
@@ -55,3 +55,22 @@ tasks:
cmds:
- task: procs:down
date:
desc: Returns date in YEAR.WEEK.DAY format
cmds:
- |
YEAR=$(date +%Y)
WEEK=$(date +%V)
DAY=$(date +%u)
echo "${YEAR}.${WEEK}.${DAY}"
vars:
DATE: '{{default "" .CLI_ARGS}}'
silent: true
release:
desc: Create a new release with formatted date
cmds:
- curl -sfL https://goreleaser.com/static/run | DISTRIBUTION=pro VERSION=v{{.VERSION}} bash -s -- check
- RELEASE_DATE=$(task date) goreleaser release --clean
silent: true