docs/pake-action.md
Transform any webpage into a lightweight desktop app with a single GitHub Actions step.
This guide shows how to use Pake as a GitHub Action in your own projects. For using our project's built-in GitHub Actions workflow, see GitHub Actions Usage.
- name: Build Pake App
uses: tw93/Pake@v3
with:
url: "https://example.com"
name: "MyApp"
| Parameter | Description | Required | Default |
|---|---|---|---|
url | Target URL to package | ✅ | |
name | Application name | ✅ | |
output-dir | Output directory | dist | |
icon | Custom app icon URL/path | ||
width | Window width | 1200 | |
height | Window height | 780 | |
debug | Enable debug mode | false |
| Output | Description |
|---|---|
package-path | Path to the generated package |
name: Build Web App
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: tw93/Pake@v3
with:
url: "https://weekly.tw93.fun"
name: "WeeklyApp"
- uses: tw93/Pake@v3
with:
url: "https://example.com"
name: "MyApp"
icon: "https://example.com/icon.png"
width: 1400
height: 900
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: tw93/Pake@v3
with:
url: "https://example.com"
name: "CrossPlatformApp"
pake command with your parameters.deb packages (Ubuntu runners).app and .dmg packages (macOS runners).exe and .msi packages (Windows runners)Use GitHub's matrix strategy to build for multiple platforms simultaneously.