Skip to content

Commit 541d1a0

Browse files
committed
✨ Release fish completions
1 parent 1e6522e commit 541d1a0

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

taskfile.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,13 @@ tasks:
5252
cmds:
5353
- rm -rf "{{.BIN_DIR}}/{{.APP_NAME}}"
5454
silent: true
55-
tag:
55+
tar:
5656
deps: [artifacts]
57+
cmds:
58+
- cp {{.RELEASE_DIR}}/{{.APP_NAME}} {{.RELEASE_DIR}}/{{.APP_NAME}}-darwin-arm64
59+
- tar -czf {{.RELEASE_DIR}}/plan-"$(echo "$APP_VERSION" | cut -c2-)".tar.gz -C .build/release {{.APP_NAME}}-darwin-arm64 "Completions/"
60+
tag:
61+
deps: [tar]
5762
cmds:
5863
- git tag "$APP_VERSION"
5964
- git push origin "$APP_VERSION"
@@ -63,8 +68,7 @@ tasks:
6368
deps: [tag]
6469
cmds:
6570
- /opt/homebrew/bin/gh auth status
66-
- cp {{.RELEASE_DIR}}/{{.APP_NAME}} {{.RELEASE_DIR}}/{{.APP_NAME}}-darwin-arm64
67-
- /opt/homebrew/bin/gh release create --generate-notes "$APP_VERSION" {{.RELEASE_DIR}}/{{.APP_NAME}}-*
71+
- /opt/homebrew/bin/gh release create --generate-notes "$APP_VERSION" {{.RELEASE_DIR}}/plan-"$APP_VERSION".tar.gz
6872
sha:
6973
requires:
7074
vars: [APP_NAME, RELEASE_DIR]

0 commit comments

Comments
 (0)