Skip to content

Commit

Permalink
Include drone environment reference for release
Browse files Browse the repository at this point in the history
  • Loading branch information
zachfi committed Apr 7, 2024
1 parent 1eb80db commit 917a839
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .drone.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,14 @@
commands: [
'make release',
],
environment: {
GITHUB_TOKEN: {
from_secret: 'GITHUB_TOKEN',
},
},
when: {
ref: [
'refs/tags/*',
'refs/tags/v*',
],
},
},
Expand Down
5 changes: 4 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,15 @@ steps:
pull: always
- commands:
- make release
environment:
GITHUB_TOKEN:
from_secret: GITHUB_TOKEN
image: zachfi/build-image
name: release
pull: always
when:
ref:
- refs/tags/*
- refs/tags/v*
trigger:
ref:
- refs/heads/*
Expand Down

0 comments on commit 917a839

Please sign in to comment.