Skip to content

Commit

Permalink
Remove pdb output and add archive checksum
Browse files Browse the repository at this point in the history
  • Loading branch information
SheepReaper committed Sep 12, 2023
1 parent b92ba1c commit 11bdc09
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,15 @@ jobs:
dotnet-version: "8.0"

- name: Build
run: dotnet publish ./src/yk-csr-cli/GenerateYKCSR.csproj -c Release -r ${{ matrix.target }} --self-contained /p:PublishReadyToRun=true -o out/${{ matrix.target }}
run: dotnet publish /p:DebugType=None /p:DebugSymbols=false /p:PublishReadyToRun=true -c Release -r ${{ matrix.target }} --self-contained -o out/${{ matrix.target }} -- ./src/yk-csr-cli/GenerateYKCSR.csproj

- name: Archive
run: zip -r ./out/${{ matrix.target }}.zip ./out/${{ matrix.target }} -j
- name: Archive and Hash
run: |
zip -r ./out/${{ matrix.target }}.zip ./out/${{ matrix.target }} -j
sha256sum ./out/${{ matrix.target }}.zip > ./out/${{ matrix.target }}.zip.sha256
- name: Upload
run: gh release upload ${{github.event.release.tag_name}} ./out/${{ matrix.target }}.zip --clobber
run: gh release upload ${{github.event.release.tag_name}} ./out/${{ matrix.target }}.zip ./out/${{ matrix.target }}.zip.sha256 --clobber
env:
GITHUB_TOKEN: ${{ github.TOKEN }}
shell: bash

0 comments on commit 11bdc09

Please sign in to comment.