Skip to content

Commit

Permalink
Make sure build runs before pack
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
kzu authored Jan 29, 2024
1 parent ef852e7 commit ede013a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ jobs:
uses: ./.github/workflows/test

- name: 📦 pack
run: dotnet pack -m:1
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
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ jobs:
uses: ./.github/workflows/test

- name: 📦 pack
run: dotnet pack -m:1 -p:version=${GITHUB_REF#refs/*/v}
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 ede013a

Please sign in to comment.