Build .NET 9 #3
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: Release Myna Time Tracker | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 9.0.x | |
| - name: Publish | |
| run: dotnet publish -r win-x64 | |
| - name: Create release ZIP file | |
| run: Compress-Archive -Path TimeTracker/bin/Release/net9.0-windows/win-x64/publish/* -Destination "MynaTimeTracker-win-x64-${{ github.ref_name }}.zip" | |
| - name: Create github release | |
| run: gh release create "${{ github.ref_name }}" "MynaTimeTracker-win-x64-${{ github.ref_name }}.zip" |