Skip to content

Commit 2c185cf

Browse files
committed
Switch to pack on build for more streamlined workflow
Should also fix an issue with pack separate from build
1 parent c5b8025 commit 2c185cf

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/workflows/build.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ on:
1717

1818
env:
1919
DOTNET_NOLOGO: true
20+
PackOnBuild: true
21+
GeneratePackageOnBuild: true
2022

2123
jobs:
2224
build:
@@ -44,9 +46,6 @@ jobs:
4446
- name: 🙏 build
4547
run: dotnet build -m:1 -p:VersionLabel="$GITHUB_REF.$GITHUB_RUN_NUMBER"
4648

47-
- name: 📦 pack
48-
run: dotnet pack -m:1 -p:VersionLabel="$GITHUB_REF.$GITHUB_RUN_NUMBER"
49-
5049
- name: 🚀 sleet
5150
env:
5251
SLEET_CONNECTION: ${{ secrets.SLEET_CONNECTION }}

.github/workflows/publish.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
env:
1111
DOTNET_NOLOGO: true
1212
Configuration: Release
13+
PackOnBuild: true
14+
GeneratePackageOnBuild: true
1315

1416
jobs:
1517
publish:
@@ -47,9 +49,6 @@ jobs:
4749
- name: 🧪 test
4850
uses: ./.github/workflows/test
4951

50-
- name: 📦 pack
51-
run: dotnet pack -bl -p:version=${GITHUB_REF#refs/*/v}
52-
5352
- name: 📦 binlog
5453
uses: actions/upload-artifact@v3
5554
if: always()

0 commit comments

Comments
 (0)