test no window #18
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: | |
branches: [ "main" ] | |
paths: | |
- assets/version.txt | |
jobs: | |
build: | |
permissions: write-all | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: SetVersion | |
id: SetVersion | |
run: | | |
echo "std20version=$(cat assets/version.txt)" >> $ENV:GITHUB_OUTPUT | |
- name: Install .NET Core | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Build | |
run: dotnet build --configuration Release "src/SingleExe.Tool/SingleExe.Tool.csproj" | |
- name: Pack | |
run: dotnet pack --configuration Release --output "pack" "src/SingleExe.Tool/SingleExe.Tool.csproj" | |
- name: Push | |
run: dotnet nuget push "pack/single-exe.${{steps.SetVersion.outputs.std20version}}.nupkg" --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate |