diff options
author | Joe Chen <jc@unknwon.io> | 2022-01-18 11:58:09 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-18 11:58:09 +0800 |
commit | 2071eb634f33bb160ba86f79b2de06f122971279 (patch) | |
tree | 77e148a11aa9f49d873993fece08f784f0dd00fe /Taskfile.yml | |
parent | e6c5633f580399c8f4dfc07166a63a01c6c70346 (diff) |
docs: update release templates and playbook (#6735)
[skip ci]
Diffstat (limited to 'Taskfile.yml')
-rw-r--r-- | Taskfile.yml | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Taskfile.yml b/Taskfile.yml index 5fff2bcf..b42d3881 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -1,5 +1,9 @@ version: '3' +vars: + BINARY_EXT: + sh: echo '{{if eq OS "windows"}}.exe{{end}}' + tasks: web: desc: Build the binary and start the web server. @@ -16,7 +20,7 @@ tasks: -X "{{.PKG_PATH}}.BuildCommit={{.BUILD_COMMIT}}" ' -tags '{{.TAGS}}' - -trimpath -o gogs + -trimpath -o gogs{{.BINARY_EXT}} vars: PKG_PATH: gogs.io/gogs/internal/conf BUILD_TIME: @@ -60,8 +64,8 @@ tasks: cmds: - rm -rf {{.RELEASE_GOGS}} - mkdir -p {{.RELEASE_GOGS}} - - cp -r gogs LICENSE README.md README_ZH.md scripts {{.RELEASE_GOGS}} - - cd {{.RELEASE_ROOT}} && zip -r gogs.$(NOW).zip "gogs" + - cp -r gogs{{.BINARY_EXT}} LICENSE README.md README_ZH.md scripts {{.RELEASE_GOGS}} + - cd {{.RELEASE_ROOT}} && zip -r gogs.zip "gogs" vars: RELEASE_ROOT: release RELEASE_GOGS: release/gogs |