feat: auto CI/CD workflow for release (AppImage) #1
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 AppImage | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| workflow_dispatch: | |
| inputs: | |
| tag: | |
| description: "Release tag to create or update, for example v0.1.0" | |
| required: true | |
| default: "v0.1.0" | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-appimage: | |
| name: Build Linux AppImage | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.27.0 | |
| run_install: false | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - name: Setup Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Install Tauri Linux dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| build-essential \ | |
| curl \ | |
| file \ | |
| libayatana-appindicator3-dev \ | |
| librsvg2-dev \ | |
| libssl-dev \ | |
| libwebkit2gtk-4.1-dev \ | |
| libxdo-dev \ | |
| patchelf \ | |
| wget | |
| - name: Install frontend dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build and upload AppImage | |
| uses: tauri-apps/tauri-action@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| tagName: ${{ github.event_name == 'workflow_dispatch' && inputs.tag || github.ref_name }} | |
| releaseName: "StackPilot ${{ github.event_name == 'workflow_dispatch' && inputs.tag || github.ref_name }}" | |
| releaseBody: "Linux AppImage build for StackPilot." | |
| releaseDraft: true | |
| prerelease: false | |
| tauriScript: pnpm tauri | |
| args: --bundles appimage | |
| releaseAssetNamePattern: "[name]-[version]-[platform]-[arch][ext]" |