Skip to content

Commit

Permalink
Switch to PackOnBuild=true and remove pack step
Browse files Browse the repository at this point in the history
This simplifies the workflows
  • Loading branch information
kzu authored Jan 30, 2024
1 parent ede013a commit 6e7a3ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ env:
DOTNET_NOLOGO: true
VersionPrefix: 42.42.${{ github.run_number }}
VersionLabel: ${{ github.ref }}

PackOnBuild: true
GeneratePackageOnBuild: true

defaults:
run:
shell: bash
Expand Down Expand Up @@ -67,11 +69,6 @@ jobs:
- name: 🧪 test
uses: ./.github/workflows/test

- name: 📦 pack
run: |
dotnet build -m:1
dotnet pack --no-build -m:1
# Only push CI package to sleet feed if building on ubuntu (fastest)
- name: 🚀 sleet
env:
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ on:
env:
DOTNET_NOLOGO: true
Configuration: Release

PackOnBuild: true
GeneratePackageOnBuild: true

jobs:
publish:
runs-on: ubuntu-latest
Expand All @@ -27,10 +29,5 @@ jobs:
- name: 🧪 test
uses: ./.github/workflows/test

- name: 📦 pack
run: |
dotnet build -m:1 -p:version=${GITHUB_REF#refs/*/v}
dotnet pack -m:1 -p:version=${GITHUB_REF#refs/*/v}
- name: 🚀 nuget
run: dotnet nuget push ./bin/**/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate

0 comments on commit 6e7a3ab

Please sign in to comment.