add release task

This commit is contained in:
Yanick Champoux 2024-08-10 09:28:07 -04:00
parent 9b23a6995b
commit 760263b555

View File

@ -7,6 +7,11 @@ vars:
PARENT_BRANCH: main PARENT_BRANCH: main
tasks: tasks:
release:gitea:
cmds:
- tea releases create -asset releases/updux-{{.VERSION}}.tgz -p --title {{.VERSION}} --tag {{.VERSION}}
vars:
VERSION: { sh: 'npm version --json | jq -r .updux' }
prerelease: prerelease:
desc: deploy a prerelease desc: deploy a prerelease
deps: deps:
@ -15,6 +20,7 @@ tasks:
cmds: cmds:
- npm version prerelease - npm version prerelease
- npm pack --pack-destination releases - npm pack --pack-destination releases
- { task: 'release:gitea' }
pack: pack:
desc: bundle the distro desc: bundle the distro