From c81d68968d62de5072fb38fe1df94f70e09355ee Mon Sep 17 00:00:00 2001 From: dudu Date: Fri, 25 Nov 2022 19:04:03 +0800 Subject: [PATCH 1/3] Update package info --- src/GitLabApiClient/GitLabApiClient.csproj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/GitLabApiClient/GitLabApiClient.csproj b/src/GitLabApiClient/GitLabApiClient.csproj index 8f7a098a..03593c78 100644 --- a/src/GitLabApiClient/GitLabApiClient.csproj +++ b/src/GitLabApiClient/GitLabApiClient.csproj @@ -6,10 +6,10 @@ GitLabApiClient is a .NET rest client for GitLab API v4. nmklotas - https://github.com/nmklotas/GitLabApiClient - https://github.com/nmklotas/GitLabApiClient + https://github.com/cnblogs/GitLabApiClient + https://github.com/cnblogs/GitLabApiClient GitLab REST API CI Client - GitLabApiClient + Cnblogs.GitLabApiClient MIT nmklotas true From 890ba14915171b8ea4d054172738449282873a2c Mon Sep 17 00:00:00 2001 From: dudu Date: Fri, 25 Nov 2022 19:48:08 +0800 Subject: [PATCH 2/3] Add pack.sh --- pack.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 pack.sh diff --git a/pack.sh b/pack.sh new file mode 100644 index 00000000..895a7e8c --- /dev/null +++ b/pack.sh @@ -0,0 +1,9 @@ +#!/bin/bash +set -e + +[ -z $1 ] && echo "Missing version" && exit 1 + +version=$1 +project=src/GitLabApiClient +dotnet build -p:version=$version -c Release $project +dotnet pack $project -c Release -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg --include-source -p:Version=$version -o ./artifacts From d9c7985a3a0a44d2865e01f71d8d8a9b0471c055 Mon Sep 17 00:00:00 2001 From: dudu Date: Fri, 25 Nov 2022 19:49:46 +0800 Subject: [PATCH 3/3] Update ci.yml --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 19ac07b4..180d8f8b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,7 @@ on: pull_request: push: branches: - - master + - main release: types: [published] @@ -46,7 +46,7 @@ jobs: # - name: Push NuGet # if: | # startsWith(github.event.ref, 'refs/tags/') - # || endsWith(github.event.ref, '/master') + # || endsWith(github.event.ref, '/main') # || github.event.action == 'published' # shell: pwsh # run: dotnet nuget push **/*.nupkg --source $Env:SOURCE --api-key $Env:TOKEN --skip-duplicate