fix: aggressively reclaim game focus for 20s after launch to handle s… #16
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: Build and Release | |
| on: | |
| push: | |
| tags: | |
| - "v*" # Dispara quando você fizer push de uma tag como v1.0.1 | |
| jobs: | |
| release: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout do código | |
| uses: actions/checkout@v4 | |
| - name: Atualizar versão no extension.yaml | |
| run: | | |
| $version = "${{ github.ref_name }}".TrimStart("v") | |
| (Get-Content extension.yaml) -replace '^Version:.*', "Version: $version" | | |
| Set-Content extension.yaml | |
| - name: Compilar projeto | |
| run: dotnet build GameTaskPlugin.csproj -c Release | |
| - name: Criar o .pext | |
| id: pext | |
| run: | | |
| $version = "${{ github.ref_name }}".TrimStart("v") | |
| $pextName = "GameTask-$version.pext" | |
| Compress-Archive -Force -Path @( | |
| "bin\Release\net48\GameTaskPlugin.dll", | |
| "extension.yaml", | |
| "icon.png" | |
| ) -DestinationPath "tmp.zip" | |
| Rename-Item -Path "tmp.zip" -NewName $pextName | |
| echo "PEXT_NAME=$pextName" >> $env:GITHUB_OUTPUT | |
| - name: Publicar Release no GitHub | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: ${{ steps.pext.outputs.PEXT_NAME }} | |
| generate_release_notes: true |