Windows: restore main window after Pick location (fixes #3) (#4) #8
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 | |
| on: | |
| push: | |
| branches: [master] | |
| tags: | |
| - 'v*' | |
| jobs: | |
| build-windows: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '10.0.x' | |
| dotnet-quality: 'preview' | |
| - name: Build & Publish (self-contained single-file) | |
| run: dotnet publish windows/QuadClicker.csproj -c Release -r win-x64 | |
| --self-contained true | |
| -p:PublishSingleFile=true | |
| -p:IncludeNativeLibrariesForSelfExtract=true | |
| -p:EnableCompressionInSingleFile=true | |
| -o artifacts/windows | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: QuadClicker-win-x64 | |
| path: artifacts/windows/ | |
| release: | |
| needs: [build-windows] | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Generate version tag | |
| id: version | |
| run: | | |
| if [[ "${{ github.ref }}" == refs/tags/v* ]]; then | |
| echo "tag=${{ github.ref_name }}" >> "$GITHUB_OUTPUT" | |
| echo "is_manual_tag=true" >> "$GITHUB_OUTPUT" | |
| else | |
| TAG="v0.0.0-dev.$(date +%Y%m%d).${GITHUB_SHA::7}" | |
| echo "tag=$TAG" >> "$GITHUB_OUTPUT" | |
| echo "is_manual_tag=false" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Download Windows artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: QuadClicker-win-x64 | |
| path: release/windows | |
| - name: Zip Windows artifact | |
| run: zip -r QuadClicker-win-x64.zip release/windows/ | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: ${{ steps.version.outputs.tag }} | |
| files: | | |
| QuadClicker-win-x64.zip | |
| generate_release_notes: true | |
| prerelease: ${{ steps.version.outputs.is_manual_tag == 'false' }} | |
| make_latest: ${{ steps.version.outputs.is_manual_tag == 'true' }} |