claude-desktop/.forgejo/workflows/build-appimage.yml
Eddy e17d94a078
Some checks are pending
Build AppImage / build (push) Waiting to run
CI: AppImage Build Pipeline für Forgejo Actions
- Triggert bei [appimage] im Commit oder Release-Tag (v*)
- Baut mit Tauri-Container + Node 22 + Rust stable
- Lädt AppImage als Artifact hoch
- Bei Tag: Erstellt automatisch Release mit AppImage

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-04-15 14:16:54 +02:00

73 lines
2 KiB
YAML

# Claude Desktop — AppImage Build Pipeline
# Triggert bei [appimage] im Commit oder bei Release-Tags (v*)
name: Build AppImage
on:
push:
tags:
- 'v*'
branches:
- main
jobs:
build:
# Nur bei [appimage] im Commit oder bei Tag
if: contains(github.event.head_commit.message, '[appimage]') || startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
container:
image: ghcr.io/tauri-apps/tauri-action-core:latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Rust Cache
uses: Swatinem/rust-cache@v2
with:
workspaces: src-tauri
- name: Install Dependencies
run: |
apt-get update
apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libssl-dev
- name: Install npm packages
run: npm ci
- name: Build Tauri App
run: npm run tauri build -- --bundles appimage
env:
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_KEY }}
- name: Get Version
id: version
run: |
VERSION=$(grep '^version' src-tauri/Cargo.toml | head -1 | sed 's/.*"\(.*\)"/\1/')
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "Version: $VERSION"
- name: Upload AppImage Artifact
uses: actions/upload-artifact@v4
with:
name: claude-desktop-${{ steps.version.outputs.version }}.AppImage
path: src-tauri/target/release/bundle/appimage/*.AppImage
# Bei Tag: Release erstellen und AppImage hochladen
- name: Create Release
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v1
with:
files: src-tauri/target/release/bundle/appimage/*.AppImage
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}