Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate and upload binlogs, don't version test build/run #230

Merged
merged 1 commit into from
Sep 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,29 @@ jobs:
shell: pwsh
working-directory: src/NuGetizer.Tests
run: |
msbuild -r -m:1
dotnet restore Scenarios/given_a_packaging_project/a.nuproj
msbuild -r

- name: 📦 binlog
uses: actions/upload-artifact@v3
if: always()
with:
name: binlog-build-${{ github.run_number }}
path: src/NuGetizer.Tests/msbuild.binlog

- name: 🧪 test
uses: ./.github/workflows/test

- name: 📦 pack
run: dotnet pack -m:1 -p:VersionLabel="$GITHUB_REF.$GITHUB_RUN_NUMBER"

- name: 📦 binlog
uses: actions/upload-artifact@v3
if: always()
with:
name: binlog-pack-${{ github.run_number }}
path: msbuild.binlog

# Only push CI package to sleet feed if building on ubuntu (fastest)
- name: 🚀 sleet
env:
Expand Down
18 changes: 16 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,28 @@ jobs:
shell: pwsh
working-directory: src/NuGetizer.Tests
run: |
msbuild -r -m:1 -p:version=${GITHUB_REF#refs/*/v}
dotnet restore Scenarios/given_a_packaging_project/a.nuproj
msbuild -r

- name: 📦 binlog
uses: actions/upload-artifact@v3
if: always()
with:
name: binlog-build-${{ github.run_number }}
path: src/NuGetizer.Tests/msbuild.binlog

- name: 🧪 test
uses: ./.github/workflows/test

- name: 📦 pack
run: dotnet pack -m:1 -p:version=${GITHUB_REF#refs/*/v}
run: dotnet pack -p:version=${GITHUB_REF#refs/*/v}

- name: 📦 binlog
uses: actions/upload-artifact@v3
if: always()
with:
name: binlog-pack-${{ github.run_number }}
path: msbuild.binlog

- name: 🚀 nuget
run: dotnet nuget push ./bin/**/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate
1 change: 1 addition & 0 deletions Directory.Build.rsp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# See https://docs.microsoft.com/en-us/visualstudio/msbuild/msbuild-response-files
-bl
-nr:false
-m:1
-v:m
Expand Down