chore: update version #20
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Package & Release | |
| on: | |
| workflow_dispatch: | |
| push: | |
| tags: | |
| - 'v[0-9]+.[0-9]+.[0-9]+' | |
| jobs: | |
| release: | |
| permissions: | |
| attestations: write | |
| contents: write | |
| name: Release | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Package linux-x64 | |
| run: | | |
| dotnet publish ./src --runtime linux-x64 --self-contained -p:PublishSingleFile=true -c Release -o ./out/linux-x64 | |
| cd ./out/linux-x64 && tar -czf ../prune-linux-x64.tar.gz . | |
| - name: Package linux-arm64 | |
| run: | | |
| dotnet publish ./src --runtime linux-arm64 --self-contained -p:PublishSingleFile=true -c Release -o ./out/linux-arm64 | |
| cd ./out/linux-arm64 && tar -czf ../prune-linux-arm64.tar.gz . | |
| - name: Package win-x64 | |
| run: | | |
| dotnet publish ./src --runtime win-x64 --self-contained -p:PublishSingleFile=true -c Release -o ./out/win-x64 | |
| cd ./out/win-x64 && zip -r ../prune-win-x64.zip . | |
| - uses: ncipollo/release-action@v1 | |
| with: | |
| omitBody: true | |
| allowUpdates: true | |
| generateReleaseNotes: true | |
| artifacts: "out/prune-linux-arm64.tar.gz,out/prune-linux-x64.tar.gz,out/prune-win-x64.zip" |