File tree Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 4
4
pull_request :
5
5
push :
6
6
branches :
7
- - master
7
+ - main
8
8
release :
9
9
types : [published]
10
10
46
46
# - name: Push NuGet
47
47
# if: |
48
48
# startsWith(github.event.ref, 'refs/tags/')
49
- # || endsWith(github.event.ref, '/master ')
49
+ # || endsWith(github.event.ref, '/main ')
50
50
# || github.event.action == 'published'
51
51
# shell: pwsh
52
52
# run: dotnet nuget push **/*.nupkg --source $Env:SOURCE --api-key $Env:TOKEN --skip-duplicate
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -e
3
+
4
+ [ -z $1 ] && echo " Missing version" && exit 1
5
+
6
+ version=$1
7
+ project=src/GitLabApiClient
8
+ dotnet build -p:version=$version -c Release $project
9
+ dotnet pack $project -c Release -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg --include-source -p:Version=$version -o ./artifacts
Original file line number Diff line number Diff line change 6
6
<Copyright />
7
7
<Description >GitLabApiClient is a .NET rest client for GitLab API v4.</Description >
8
8
<Authors >nmklotas</Authors >
9
- <PackageProjectUrl >https://github.com/nmklotas /GitLabApiClient</PackageProjectUrl >
10
- <RepositoryUrl >https://github.com/nmklotas /GitLabApiClient</RepositoryUrl >
9
+ <PackageProjectUrl >https://github.com/cnblogs /GitLabApiClient</PackageProjectUrl >
10
+ <RepositoryUrl >https://github.com/cnblogs /GitLabApiClient</RepositoryUrl >
11
11
<PackageTags >GitLab REST API CI Client</PackageTags >
12
- <PackageId >GitLabApiClient</PackageId >
12
+ <PackageId >Cnblogs. GitLabApiClient</PackageId >
13
13
<PackageLicenseExpression >MIT</PackageLicenseExpression >
14
14
<Company >nmklotas</Company >
15
15
<PublishRepositoryUrl >true</PublishRepositoryUrl >
You can’t perform that action at this time.
0 commit comments