feat: add Keep Awake toggle to prevent system sleep (v2.1.0) #5
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: | |
| display_dj_cli_version: | |
| description: 'display-dj-cli version to use (e.g. v0.4.1). Leave empty for default from package.json.' | |
| required: false | |
| default: '' | |
| tag: | |
| description: 'Release tag (e.g. v2.0.1). Required for manual runs.' | |
| required: true | |
| jobs: | |
| release: | |
| permissions: | |
| contents: write | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - platform: macos-latest | |
| target: aarch64-apple-darwin | |
| args: --target aarch64-apple-darwin | |
| - platform: macos-latest | |
| target: x86_64-apple-darwin | |
| args: --target x86_64-apple-darwin | |
| - platform: windows-latest | |
| target: x86_64-pc-windows-msvc | |
| args: --target x86_64-pc-windows-msvc | |
| - platform: ubuntu-22.04 | |
| target: x86_64-unknown-linux-gnu | |
| args: --target x86_64-unknown-linux-gnu | |
| runs-on: ${{ matrix.platform }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Setup Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: ${{ matrix.target }} | |
| - name: Install Linux dependencies | |
| if: matrix.platform == 'ubuntu-22.04' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| libwebkit2gtk-4.1-dev \ | |
| libappindicator3-dev \ | |
| librsvg2-dev \ | |
| patchelf \ | |
| libxdo-dev \ | |
| libssl-dev | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Build and release | |
| uses: tauri-apps/tauri-action@v0 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| DISPLAY_DJ_CLI_VERSION: ${{ github.event.inputs.display_dj_cli_version }} | |
| with: | |
| tagName: ${{ github.event.inputs.tag || github.ref_name }} | |
| releaseName: 'Display DJ ${{ github.event.inputs.tag || github.ref_name }}' | |
| releaseBody: | | |
| ## Display DJ ${{ github.event.inputs.tag || github.ref_name }} | |
| ### Supported Platforms | |
| - **macOS** Apple Silicon (ARM64) - `.dmg` | |
| - **macOS** Intel (x64) - `.dmg` | |
| - **Windows** (x64) - `.msi` / `.exe` | |
| - **Linux** (x64) - `.deb` / `.AppImage` | |
| ### Requirements | |
| - Display control is handled by the bundled [display-dj CLI](https://github.com/synle/display-dj-cli) sidecar — no external tools needed on macOS or Windows | |
| - **Linux**: Install `ddcutil` and `brightnessctl` for display control: `sudo apt install ddcutil brightnessctl i2c-tools` | |
| releaseDraft: true | |
| prerelease: false | |
| args: ${{ matrix.args }} |