Skip to content

Commit fa070b6

Browse files
committed
chore(woodpecker): add tag event
1 parent 9433b38 commit fa070b6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.woodpecker/build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,16 @@ steps:
1616
image: bash
1717
commands:
1818
- export BOT_GITHUB_TOKEN=$GITHUB_TOKEN
19+
- export GIT_TAG=$([ -z $CI_COMMIT_TAG ] && echo latest || echo $CI_COMMIT_TAG)
1920
- make prepare-assets
20-
- make latest-release
21+
- GIT_TAG=$GIT_TAG make $([ -z $CI_COMMIT_TAG ] && echo latest-release || echo push-release)
2122
environment:
2223
GIT_REPO: ${CI_REPO}
23-
GIT_TAG: ${CI_COMMIT_TAG=latest}
2424
REPO_NAME: ${CI_REPO_NAME}
2525
REPO_OWNER: ${CI_REPO_OWNER}
2626
secrets:
2727
- github_token
2828
when:
2929
event:
30+
- tag
3031
- push

0 commit comments

Comments
 (0)