Skip to content

Commit 5b7bd7c

Browse files
authored
Merge pull request #3 from cnblogs/teak-packing
Teak packing
2 parents 6b14533 + d9c7985 commit 5b7bd7c

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
pull_request:
55
push:
66
branches:
7-
- master
7+
- main
88
release:
99
types: [published]
1010

@@ -46,7 +46,7 @@ jobs:
4646
# - name: Push NuGet
4747
# if: |
4848
# startsWith(github.event.ref, 'refs/tags/')
49-
# || endsWith(github.event.ref, '/master')
49+
# || endsWith(github.event.ref, '/main')
5050
# || github.event.action == 'published'
5151
# shell: pwsh
5252
# run: dotnet nuget push **/*.nupkg --source $Env:SOURCE --api-key $Env:TOKEN --skip-duplicate

pack.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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

src/GitLabApiClient/GitLabApiClient.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
<Copyright />
77
<Description>GitLabApiClient is a .NET rest client for GitLab API v4.</Description>
88
<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>
1111
<PackageTags>GitLab REST API CI Client</PackageTags>
12-
<PackageId>GitLabApiClient</PackageId>
12+
<PackageId>Cnblogs.GitLabApiClient</PackageId>
1313
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1414
<Company>nmklotas</Company>
1515
<PublishRepositoryUrl>true</PublishRepositoryUrl>

0 commit comments

Comments
 (0)