From 78224511b05b1cb6713cc52e41510678cd71a4a5 Mon Sep 17 00:00:00 2001 From: s2quake Date: Fri, 28 Jun 2024 18:27:41 +0900 Subject: [PATCH] Merge pull request #21 from s2quake/ci/improve-action Improve build and test action --- .github/workflows/pack.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pack.yml b/.github/workflows/pack.yml index b3efb99..6db7620 100644 --- a/.github/workflows/pack.yml +++ b/.github/workflows/pack.yml @@ -2,7 +2,7 @@ name: Pack on: pull_request: - + jobs: pack: runs-on: ubuntu-latest @@ -12,8 +12,13 @@ jobs: with: dotnet-version: 8.0.100 - run: echo "${{ secrets.SNK_FILE }}" | base64 --decode > private.snk + - run: git log ${{ github.sha }}" -1 --pretty=%s - run: | dotnet pack \ -o pack \ -p:TreatWarningsAsErrors=true \ -p:AssemblyOriginatorKeyFile=$(pwd)/private.snk + - if: env.NUGET_API_KEY != '' + run: .github/bin/dist-nuget.sh + env: + NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}