adc8558edf
* ci: Added build on commit job * ci: wrong nesting * ci: Switch to windows * update windows orb * ci: Pull using bot context * ci: add fingerprint * ci: pebkac * ci: removed unnecessary steps * ci: Assembly info props * ci: Use powershell env vars * try $TAG * do it in same step * ci: Updated publish_nuget job
53 lines
1.6 KiB
YAML
Executable File
53 lines
1.6 KiB
YAML
Executable File
version: 2.1
|
|
|
|
orbs:
|
|
win: circleci/windows@5.0.0
|
|
|
|
jobs:
|
|
build:
|
|
executor: win/default
|
|
steps:
|
|
- checkout
|
|
- run:
|
|
name: Restore packages
|
|
command: dotnet restore GrasshopperAsyncComponent.sln
|
|
- run:
|
|
name: Build solution
|
|
command: |
|
|
$TAG = if([string]::IsNullOrEmpty($env:CIRCLE_TAG)) { "0.999.$($env:WORKFLOW_NUM)-ci" } else { $env:CIRCLE_TAG }
|
|
dotnet build GrasshopperAsyncComponent.sln --no-restore -c Release /p:Version=$TAG /p:AssemblyVersionNumber=$TAG /p:AssemblyInformationalVersion=$TAG
|
|
environment:
|
|
WORKFLOW_NUM: << pipeline.number >>
|
|
publish_nuget:
|
|
executor: win/default
|
|
steps:
|
|
- checkout
|
|
- run:
|
|
name: Restore packages
|
|
command: dotnet restore GrasshopperAsyncComponent.sln
|
|
- run:
|
|
name: Build solution
|
|
command: |
|
|
$TAG = if([string]::IsNullOrEmpty($env:CIRCLE_TAG)) { "0.999.$($env:WORKFLOW_NUM)-ci" } else { $env:CIRCLE_TAG }
|
|
dotnet build GrasshopperAsyncComponent.sln --no-restore -c Release /p:Version=$TAG /p:AssemblyVersionNumber=$TAG /p:AssemblyInformationalVersion=$TAG
|
|
environment:
|
|
WORKFLOW_NUM: << pipeline.number >>
|
|
- run:
|
|
name: Push NuGet
|
|
command: nuget push **/*.nupkg -Source https://api.nuget.org/v3/index.json -ApiKey $env:NUGET_APIKEY -SkipDuplicate
|
|
|
|
workflows:
|
|
build:
|
|
jobs:
|
|
- build:
|
|
context: github-dev-bot
|
|
publish:
|
|
jobs:
|
|
- publish_nuget:
|
|
filters:
|
|
tags:
|
|
only: /.*/
|
|
branches:
|
|
ignore: /.*/
|
|
context: nuget
|