Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fixed release
  • Loading branch information
aasim committed Jul 5, 2022
commit 90b60c02e9be91e09b9f3de8b4628ab8db071579
12 changes: 9 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,23 @@ jobs:
- name: Build CLI self-contained
run: dotnet publish --configuration Release --output ./bin --self-contained --runtime ${{ matrix.rid }} -p:PublishSingleFile=true -p:DebugType=None -p:PublishTrimmed=true ./src/Microsoft.Sbom.Tool

- name: Rename binary to readable name
- name: Rename binary to short name
run: mv ./bin/Microsoft.Sbom.Tool${{ matrix.rid == 'win-x64' && '.exe' || '' }} ./bin/sbom-tool-${{ matrix.rid }}${{ matrix.rid == 'win-x64' && '.exe' || '' }}

- name: Generate SBOM for sbom-tool
run: dotnet run --project src/Microsoft.Sbom.Tool generate -- -b ./bin -bc ./src/ -pn sbom-tool -pv ${{ github.event.release.tag_name }} -nsb https://sbom.microsoft

- name: Upload binaries and SBOM to release
- name: Upload SBOM to release
uses: shogo82148/actions-upload-release-asset@v1.6.2
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./bin/*
asset_path: ./bin/_manifest/spdx_2.2/manifest.spdx.json

- name: Upload binaries to release
uses: shogo82148/actions-upload-release-asset@v1.6.2
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./bin/sbom-tool-${{ matrix.rid }}${{ matrix.rid == 'win-x64' && '.exe' || '' }}

- name: Build NuGet packages
run: dotnet pack --no-restore -p:DebugType=None --include-symbols --no-build --configuration Release --output ./out
Expand Down