mirror of
https://github.com/bitwarden/server.git
synced 2025-04-06 21:48:12 -05:00
tag and release on github deploy
This commit is contained in:
parent
7f77d661c3
commit
81788b3eb0
@ -37,6 +37,10 @@ install:
|
|||||||
choco install cloc --no-progress
|
choco install cloc --no-progress
|
||||||
cloc --include-lang C#,SQL,Razor,"Bourne Shell",PowerShell,HTML,CSS,Sass,JavaScript,TypeScript --vcs git
|
cloc --include-lang C#,SQL,Razor,"Bourne Shell",PowerShell,HTML,CSS,Sass,JavaScript,TypeScript --vcs git
|
||||||
}
|
}
|
||||||
|
if($env:APPVEYOR_REPO_TAG -eq "true") {
|
||||||
|
$tagName = $env:APPVEYOR_REPO_TAG_NAME.TrimStart("v")
|
||||||
|
$env:RELEASE_NAME = "Version ${tagName}"
|
||||||
|
}
|
||||||
|
|
||||||
before_build:
|
before_build:
|
||||||
- sh: |
|
- sh: |
|
||||||
@ -125,10 +129,12 @@ on_finish:
|
|||||||
}
|
}
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
|
tag: $(APPVEYOR_REPO_TAG_NAME)
|
||||||
|
release: $(RELEASE_NAME)
|
||||||
provider: GitHub
|
provider: GitHub
|
||||||
auth_token: $(GH_TOKEN)
|
auth_token: $(GH_TOKEN)
|
||||||
artifact: /.*/
|
artifact: /.*/
|
||||||
force_update: true
|
force_update: true
|
||||||
on:
|
on:
|
||||||
branch: master
|
branch: master
|
||||||
PROD_DEPLOY: true
|
APPVEYOR_REPO_TAG: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user