Skip to content

Commit 6e7a3ab

Browse files
authored
Switch to PackOnBuild=true and remove pack step
This simplifies the workflows
1 parent ede013a commit 6e7a3ab

2 files changed

Lines changed: 6 additions & 12 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ env:
1919
DOTNET_NOLOGO: true
2020
VersionPrefix: 42.42.${{ github.run_number }}
2121
VersionLabel: ${{ github.ref }}
22-
22+
PackOnBuild: true
23+
GeneratePackageOnBuild: true
24+
2325
defaults:
2426
run:
2527
shell: bash
@@ -67,11 +69,6 @@ jobs:
6769
- name: 🧪 test
6870
uses: ./.github/workflows/test
6971

70-
- name: 📦 pack
71-
run: |
72-
dotnet build -m:1
73-
dotnet pack --no-build -m:1
74-
7572
# Only push CI package to sleet feed if building on ubuntu (fastest)
7673
- name: 🚀 sleet
7774
env:

.github/workflows/publish.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ on:
1010
env:
1111
DOTNET_NOLOGO: true
1212
Configuration: Release
13-
13+
PackOnBuild: true
14+
GeneratePackageOnBuild: true
15+
1416
jobs:
1517
publish:
1618
runs-on: ubuntu-latest
@@ -27,10 +29,5 @@ jobs:
2729
- name: 🧪 test
2830
uses: ./.github/workflows/test
2931

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

0 commit comments

Comments
 (0)