v1.4.0 — T-SQL Debugger: fully functional (E13) #7
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 | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| workflow_dispatch: | |
| inputs: | |
| version: | |
| description: "Version (e.g. 1.0.0)" | |
| required: true | |
| default: "1.0.0" | |
| jobs: | |
| build-and-release: | |
| runs-on: windows-latest | |
| timeout-minutes: 25 | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup .NET 8 | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Resolve version | |
| id: ver | |
| shell: pwsh | |
| run: | | |
| $v = "${{ github.event.inputs.version }}" | |
| if (-not $v) { | |
| $ref = "${{ github.ref_name }}" | |
| $v = $ref.TrimStart('v') | |
| } | |
| if (-not $v) { $v = "1.0.0" } | |
| echo "version=$v" >> $env:GITHUB_OUTPUT | |
| Write-Host "Version = $v" | |
| - name: Publish win-x64 | |
| shell: pwsh | |
| run: ./scripts/publish.ps1 -Version ${{ steps.ver.outputs.version }} -Runtime win-x64 | |
| - name: Install Inno Setup | |
| shell: pwsh | |
| run: choco install innosetup -y --no-progress | |
| - name: Build installer | |
| shell: pwsh | |
| run: ./scripts/build-installer.ps1 -Version ${{ steps.ver.outputs.version }} -Runtime win-x64 | |
| - name: List artifacts | |
| shell: pwsh | |
| run: Get-ChildItem dist -Recurse | Select-Object FullName, Length | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v3 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| name: DB TEAM ${{ steps.ver.outputs.version }} | |
| body: | | |
| ## DB TEAM ${{ steps.ver.outputs.version }} | |
| **Two download options:** | |
| - 🚀 **`DBTeam-Setup-${{ steps.ver.outputs.version }}.exe`** — installer (recommended). Double-click, installs to your profile, Start menu entry, clean uninstall via *Apps & features*. | |
| - 📦 **`DBTeam-${{ steps.ver.outputs.version }}-win-x64.zip`** — portable ZIP. Extract, run `DBTeam.App.exe` from anywhere. | |
| No .NET install required — self-contained. See [INSTALL.md](https://github.com/${{ github.repository }}/blob/main/docs/INSTALL.md) and [CHANGELOG.md](https://github.com/${{ github.repository }}/blob/main/CHANGELOG.md). | |
| files: | | |
| dist/DBTeam-${{ steps.ver.outputs.version }}-win-x64.zip | |
| dist/DBTeam-Setup-${{ steps.ver.outputs.version }}.exe | |
| draft: false | |
| prerelease: false | |
| - name: Upload artifact (manual runs) | |
| if: "!startsWith(github.ref, 'refs/tags/')" | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: DBTeam-${{ steps.ver.outputs.version }} | |
| path: | | |
| dist/DBTeam-${{ steps.ver.outputs.version }}-win-x64.zip | |
| dist/DBTeam-Setup-${{ steps.ver.outputs.version }}.exe |