Bump MaterialDesignThemes from 5.3.0 to 5.3.1 #60
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 (Windows) | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| tags: | |
| - 'v*' | |
| pull_request: | |
| branches: [ main, master ] | |
| workflow_dispatch: | |
| env: | |
| DOTNET_VERSION: '8.0.x' | |
| PROJECT_PATH: 'src/VRCGroupTools.csproj' | |
| RUNTIME: 'win-x64' | |
| DOTNET_EnableWindowsTargeting: true | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: ${{ env.DOTNET_VERSION }} | |
| - name: Restore (Windows) | |
| shell: pwsh | |
| run: | | |
| dotnet restore $env:PROJECT_PATH ` | |
| -p:EnableWindowsTargeting=true | |
| - name: Build (Release, Windows) | |
| shell: pwsh | |
| run: | | |
| dotnet build $env:PROJECT_PATH ` | |
| -c Release ` | |
| --no-restore ` | |
| -p:EnableWindowsTargeting=true | |
| - name: Publish (Self‑contained Windows EXE) | |
| shell: pwsh | |
| run: | | |
| dotnet publish $env:PROJECT_PATH ` | |
| -c Release ` | |
| -r $env:RUNTIME ` | |
| --self-contained true ` | |
| -p:PublishSingleFile=true ` | |
| -p:IncludeNativeLibrariesForSelfExtract=true ` | |
| -p:EnableWindowsTargeting=true ` | |
| -o publish | |
| - name: Verify EXE exists | |
| shell: pwsh | |
| run: | | |
| Get-ChildItem publish | |
| if (-not (Test-Path publish\VRCGroupTools.exe)) { | |
| Write-Error "VRCGroupTools.exe not found!" | |
| } | |
| - name: Upload Build Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: VRCGroupTools-win-x64 | |
| path: publish/ | |
| retention-days: 30 | |
| release: | |
| needs: build | |
| runs-on: windows-latest | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Download build artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: VRCGroupTools-win-x64 | |
| path: release | |
| - name: Create ZIP archive | |
| shell: pwsh | |
| run: | | |
| Compress-Archive ` | |
| -Path release\VRCGroupTools.exe ` | |
| -DestinationPath VRCGroupTools-${{ github.ref_name }}-win-x64.zip | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| files: VRCGroupTools-${{ github.ref_name }}-win-x64.zip | |
| draft: false | |
| prerelease: ${{ contains(github.ref_name, 'beta') || contains(github.ref_name, 'alpha') }} | |
| generate_release_notes: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |