-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
646ab3e
commit 4a95bd0
Showing
2 changed files
with
37 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
stages: | ||
- compile | ||
- release | ||
|
||
variables: | ||
assembly_extension: "dll" | ||
|
||
compilation: | ||
stage: compile | ||
before_script: | ||
- nuget restore | ||
- mkdir $env:CI_PROJECT_NAME/lib | ||
- wget https://gitlab.cern.ch/$env:CI_PROJECT_NAMESPACE/plugin/-/jobs/artifacts/master/raw/plugin/bin/Release/plugin.dll?job=compilation -OutFile $env:CI_PROJECT_NAME/lib/plugin.dll | ||
script: | ||
- msbuild /p:VersionAssembly=$env:CI_COMMIT_TAG /p:Configuration=Release $env:CI_PROJECT_NAME.sln | ||
after_script: | ||
- (Get-FileHash $env:CI_PROJECT_NAME/bin/Release/$env:CI_PROJECT_NAME.$env:ASSEMBLY_EXTENSION -Algorithm SHA1).Hash > $env:CI_PROJECT_NAME/bin/Release/$env:CI_PROJECT_NAME.$env:ASSEMBLY_EXTENSION.sha1 | ||
artifacts: | ||
paths: | ||
- $env:CI_PROJECT_NAME/bin/Release/$env:CI_PROJECT_NAME.$env:ASSEMBLY_EXTENSION | ||
- $env:CI_PROJECT_NAME/bin/Release/$env:CI_PROJECT_NAME.$env:ASSEMBLY_EXTENSION.sha1 | ||
expire_in: 1 year | ||
|
||
# This needs to be changed by GitLab | ||
# Release creation should be 'keyword based' | ||
release: | ||
stage: release | ||
only: | ||
- tags | ||
script: | ||
# Create a release for the current tag | ||
- CreateRelease | ||
# Update "latest" release name the newest version number | ||
- UpdateLatestRelease |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters