v0.7.44: enhanced MCP tools, context management, error resilience #81
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*' | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-linux: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - run: bun install | |
| - name: Build Linux binary | |
| run: bun build --compile --define __SNOOT_COMPILED__=true src/index.ts --outfile dist/snoot-linux-x64 | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: linux-binary | |
| path: dist/snoot-linux-x64 | |
| build-macos: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - run: bun install | |
| - name: Build macOS binary | |
| run: bun build --compile --define __SNOOT_COMPILED__=true src/index.ts --outfile dist/snoot-macos-arm64 | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: macos-binary | |
| path: dist/snoot-macos-arm64 | |
| build-windows: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - run: bun install | |
| - name: Build Windows binary | |
| run: bun build --compile --define __SNOOT_COMPILED__=true src/index.ts --outfile dist/snoot-windows-x64.exe | |
| - name: Get version from tag | |
| id: version | |
| shell: bash | |
| run: echo "version=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT" | |
| - name: Build installer | |
| run: iscc /DMyAppVersion=${{ steps.version.outputs.version }} installer.iss | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: installer | |
| path: dist/snoot-installer.exe | |
| release: | |
| runs-on: ubuntu-latest | |
| needs: [build-linux, build-macos, build-windows] | |
| steps: | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: linux-binary | |
| path: dist | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: macos-binary | |
| path: dist | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: installer | |
| path: dist | |
| - name: Upload release assets | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: | | |
| if gh release view "$GITHUB_REF_NAME" --repo "$GITHUB_REPOSITORY" > /dev/null 2>&1; then | |
| gh release upload "$GITHUB_REF_NAME" \ | |
| dist/snoot-linux-x64 \ | |
| dist/snoot-macos-arm64 \ | |
| dist/snoot-installer.exe \ | |
| --repo "$GITHUB_REPOSITORY" \ | |
| --clobber | |
| else | |
| gh release create "$GITHUB_REF_NAME" \ | |
| dist/snoot-linux-x64 \ | |
| dist/snoot-macos-arm64 \ | |
| dist/snoot-installer.exe \ | |
| --repo "$GITHUB_REPOSITORY" \ | |
| --title "$GITHUB_REF_NAME" \ | |
| --generate-notes | |
| fi |