Build & Release #11
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 & Release | |
| on: | |
| release: | |
| types: [created] | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: blacksmith-2vcpu-windows-2025 | |
| steps: | |
| - name: Checkout the repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Set up pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build executable | |
| run: pnpm run build | |
| - name: Install NSIS | |
| run: choco install nsis -y | |
| - name: Build installer | |
| run: | | |
| $version = "${{ github.event.release.tag_name || github.ref_name }}".TrimStart('v') | |
| & "C:\Program Files (x86)\NSIS\makensis.exe" /DAPP_VERSION=$version installer.nsi | |
| - name: Resolve installer path | |
| id: installer | |
| run: | | |
| $file = Get-Item "dist\24Client Bridge_Setup_v*.exe" | Select-Object -First 1 -ExpandProperty FullName | |
| echo "path=$file" >> $env:GITHUB_OUTPUT | |
| - name: Upload to GitHub Releases | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: ${{ github.event.release.tag_name || github.ref_name }} | |
| files: ${{ steps.installer.outputs.path }} |