Skip to content

Commit 92948d5

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

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.woodpecker/build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,22 @@ steps:
1010
when:
1111
event:
1212
- pull_request
13+
- tag
1314
- push
1415

1516
- name: publish
1617
image: bash
1718
commands:
1819
- export BOT_GITHUB_TOKEN=$GITHUB_TOKEN
20+
- export PULL_BASE_REF=$([ -z $CI_COMMIT_TAG ] && echo latest || echo $CI_COMMIT_TAG)
1921
- make prepare-assets
20-
- make latest-release
22+
- make $([ -z $CI_COMMIT_TAG ] && echo latest-release || echo push-release)
2123
environment:
22-
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)