Skip to content

Commit

Permalink
Merge pull request #21 from s2quake/ci/improve-action
Browse files Browse the repository at this point in the history
Improve build and test action
  • Loading branch information
s2quake committed Jun 28, 2024
1 parent 2dfb05a commit 816d49b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Pack

on:
pull_request:

jobs:
pack:
runs-on: ubuntu-latest
Expand All @@ -12,8 +12,14 @@ jobs:
with:
dotnet-version: 8.0.100
- run: echo "${{ secrets.SNK_FILE }}" | base64 --decode > private.snk
- run: git branch
- run: ls
- 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 }}

0 comments on commit 816d49b

Please sign in to comment.