Updated github workflows #14
Workflow file for this run
This file contains 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: release | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
with: | |
fetch-depth: 1 | |
- uses: actions/setup-dotnet@main | |
with: | |
dotnet-version: '6.0.x' # SDK Version to use. | |
- run: | | |
Invoke-WebRequest -OutFile Update-AssemblyInfoVersionFiles.ps1 https://gist.githubusercontent.com/lowleveldesign/663de4e0d5a071f938e6f7c82d7ca9a0/raw/Update-AssemblyInfoVersionFiles.ps1 | |
./Update-AssemblyInfoVersionFiles.ps1 | |
shell: pwsh | |
- run: dotnet build -c release -p:GeneratePackageOnBuild=true | |
working-directory: ./dotnet-wtrace | |
- run: dotnet nuget push -s https://api.nuget.org/v3/index.json -k "$NUGET_KEY" dotnet-wtrace.*.nupkg | |
env: | |
NUGET_KEY: ${{ secrets.NUGET_KEY }} | |
working-directory: ./dotnet-wtrace/bin/release | |
- run: dotnet publish -c release -r linux-x64 --self-contained -p:PublishTrimmed=true -p:PublishSingleFile=true | |
working-directory: ./dotnet-wtrace | |
- run: dotnet publish -c release -r osx-x64 --self-contained -p:PublishTrimmed=true -p:PublishSingleFile=true | |
working-directory: ./dotnet-wtrace | |
- run: dotnet publish -c release -r win-x64 --self-contained -p:PublishTrimmed=true -p:PublishSingleFile=true | |
working-directory: ./dotnet-wtrace | |
- uses: actions/upload-artifact@main | |
with: | |
name: dotnet-wtrace-linux | |
path: dotnet-wtrace/bin/release/net6.0/linux-x64/publish/dotnet-wtrace.* | |
- uses: actions/upload-artifact@main | |
with: | |
name: dotnet-wtrace-windows | |
path: dotnet-wtrace/bin/release/net6.0/win-x64/publish/dotnet-wtrace.* | |
- uses: actions/upload-artifact@main | |
with: | |
name: dotnet-wtrace-osx | |
path: dotnet-wtrace/bin/release/net6.0/osx-x64/publish/dotnet-wtrace.* |