Skip to content

Commit ede013a

Browse files
authored
Make sure build runs before pack
Some project types (i.e. meta packages and authoring projects) may not be set up to build dependencies before packing, and may therefore miss artifacts in the output directories (i.e. icon.png, see https://github.com/devlooped/ThisAssembly/actions/runs/7703759694/job/20994776682?pr=266)
1 parent ef852e7 commit ede013a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ jobs:
6868
uses: ./.github/workflows/test
6969

7070
- name: 📦 pack
71-
run: dotnet pack -m:1
71+
run: |
72+
dotnet build -m:1
73+
dotnet pack --no-build -m:1
7274
7375
# Only push CI package to sleet feed if building on ubuntu (fastest)
7476
- name: 🚀 sleet

.github/workflows/publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ jobs:
2828
uses: ./.github/workflows/test
2929

3030
- name: 📦 pack
31-
run: dotnet pack -m:1 -p:version=${GITHUB_REF#refs/*/v}
31+
run: |
32+
dotnet build -m:1 -p:version=${GITHUB_REF#refs/*/v}
33+
dotnet pack -m:1 -p:version=${GITHUB_REF#refs/*/v}
3234
3335
- name: 🚀 nuget
3436
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)