make lint #96
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: | ||
| release: | ||
| types: [published] | ||
| permissions: | ||
| contents: write # Required for electron-builder to upload release assets | ||
| jobs: | ||
| build-macos: | ||
| name: Build and Release macOS | ||
| runs-on: ${{ github.repository_owner == 'coder' && 'depot-macos-15' || 'macos-latest' }} | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 # Required for git describe to find tags | ||
| - uses: ./.github/actions/setup-mux | ||
| - name: Build application | ||
| run: bun run build | ||
| - name: Setup code signing | ||
| run: ./scripts/setup-macos-signing.sh | ||
| env: | ||
| MACOS_CERTIFICATE: ${{ secrets.MACOS_CERTIFICATE }} | ||
| MACOS_CERTIFICATE_PWD: ${{ secrets.MACOS_CERTIFICATE_PWD }} | ||
| AC_APIKEY_P8_BASE64: ${{ secrets.AC_APIKEY_P8_BASE64 }} | ||
| AC_APIKEY_ID: ${{ secrets.AC_APIKEY_ID }} | ||
| AC_APIKEY_ISSUER_ID: ${{ secrets.AC_APIKEY_ISSUER_ID }} | ||
| - name: Package and publish for macOS | ||
| run: make dist-mac-release | ||
| env: | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| build-linux: | ||
| name: Build and Release Linux | ||
| runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-16' || 'ubuntu-latest' }} | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 # Required for git describe to find tags | ||
| - uses: ./.github/actions/setup-mux | ||
| - name: Build application | ||
| run: bun run build | ||
| - name: Package and publish for Linux | ||
| run: bun x electron-builder --linux --publish always | ||
| env: | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| build-vscode-extension: | ||
| name: Build and Release VS Code Extension | ||
| runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-16' || 'ubuntu-latest' }} | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 # Required for git describe to find tags | ||
| - uses: ./.github/actions/setup-mux | ||
| - uses: ./.github/actions/build-vscode-extension | ||
| - name: Upload VS Code extension to release | ||
| env: | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| run: | | ||
| gh release upload ${{ github.event.release.tag_name }} \ | ||
| vscode/mux-*.vsix \ | ||
| --clobber | ||
| - name: Publish to VS Code Marketplace | ||
| if: secrets.VSCE_PAT != '' | ||
| working-directory: vscode | ||
| env: | ||
| VSCE_PAT: ${{ secrets.VSCE_PAT }} | ||
| run: | | ||
| bunx vsce publish -p $VSCE_PAT | ||
| build-windows: | ||
| name: Build and Release Windows | ||
| runs-on: windows-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 # Required for git describe to find tags | ||
| - uses: ./.github/actions/setup-cmux | ||
| - name: Install GNU Make (for build) | ||
| run: choco install -y make | ||
| - name: Verify tools | ||
| shell: bash | ||
| run: | | ||
| make --version | ||
| bun --version | ||
| magick --version | head -1 | ||
| - name: Build application | ||
| run: bun run build | ||
| - name: Package and publish for Windows (.exe) | ||
| run: bun x electron-builder --win --publish always | ||
| env: | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||