mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-07-31 13:06:08 +02:00
Update config.yml
This commit is contained in:
parent
d85ec86fb4
commit
bb7ed8b0ca
1 changed files with 19 additions and 21 deletions
|
@ -69,30 +69,28 @@ jobs:
|
||||||
paths:
|
paths:
|
||||||
- .
|
- .
|
||||||
|
|
||||||
release:
|
nuget-publish:
|
||||||
executor: node
|
executor:
|
||||||
|
name: win/default
|
||||||
steps:
|
steps:
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: .
|
at: .
|
||||||
- run: git config user.email "development@lansweeper.com"
|
|
||||||
- run: git config user.name "circleCI-automated-commit"
|
|
||||||
- install-deps
|
|
||||||
- run:
|
- run:
|
||||||
name: install dotnet SDK
|
name: Set correct version in csproj file, build and pack it
|
||||||
command: |
|
command: |
|
||||||
wget https://packages.microsoft.com/config/ubuntu/20.10/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
|
$env:package_version = "1.5.0"
|
||||||
sudo dpkg -i packages-microsoft-prod.deb
|
$file = Get-Item << pipeline.parameters.project-folder >><< pipeline.parameters.csproj-file >>
|
||||||
sudo apt-get update; \
|
[xml]$cn = Get-Content $file
|
||||||
sudo apt-get install -y apt-transport-https && \
|
$cn.Project.PropertyGroup.Version="$env:package_version"
|
||||||
sudo apt-get update && \
|
$cn.Save($file.FullName)
|
||||||
sudo apt-get install -y dotnet-sdk-5.0
|
type ./<< pipeline.parameters.project-folder >><< pipeline.parameters.csproj-file >>
|
||||||
- run:
|
- run:
|
||||||
name: Increase version with semantic-release
|
name: Pack the package
|
||||||
command: yarn run release
|
command: dotnet pack << pipeline.parameters.project-folder >><< pipeline.parameters.csproj-file >> --configuration Release
|
||||||
- persist_to_workspace:
|
- run:
|
||||||
root: .
|
name: Publish the package
|
||||||
paths:
|
command: |
|
||||||
- .
|
dotnet nuget push << pipeline.parameters.project-folder >><< pipeline.parameters.nuget-output-file >> --source "github" --api-key $env:GITHUB_TOKEN
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
|
@ -106,11 +104,11 @@ workflows:
|
||||||
branches:
|
branches:
|
||||||
only: << pipeline.parameters.git-primary-branch >>
|
only: << pipeline.parameters.git-primary-branch >>
|
||||||
|
|
||||||
- release:
|
- nuget-publish:
|
||||||
context:
|
|
||||||
- lec-github-packages-rw
|
|
||||||
requires:
|
requires:
|
||||||
- build
|
- build
|
||||||
|
context:
|
||||||
|
- lec-github-packages-rw
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
only: << pipeline.parameters.git-primary-branch >>
|
only: << pipeline.parameters.git-primary-branch >>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue