Files
dumpsterChat/.github/workflows/release.yml
T
hobokenchicken 1139e90fc3
Release Desktop Apps / build-windows (push) Failing after 3h15m29s
Release Desktop Apps / build-linux (push) Failing after 3m21s
Release Desktop Apps / release (push) Has been skipped
fix: use powershell -Command for download, keep shell:cmd for execution
2026-07-07 19:46:27 +00:00

73 lines
2.3 KiB
YAML

name: Release Desktop Apps
on:
push:
tags: ['v*']
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: { node-version: 20 }
- uses: dtolnay/rust-toolchain@stable
- name: Install system deps
run: sudo apt-get update && sudo apt-get install -y libwebkit2gtk-4.1-dev libgtk-3-dev libappindicator3-dev librsvg2-dev patchelf
- name: Build frontend
run: cd web && npm ci && npm run build
- name: Build Tauri bundles
env:
NO_STRIP: "true"
run: cd web && npx tauri build
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: linux-bundles
path: |
web/src-tauri/target/release/bundle/appimage/*.AppImage
web/src-tauri/target/release/bundle/deb/*.deb
web/src-tauri/target/release/bundle/rpm/*.rpm
build-windows:
runs-on: windows
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: { node-version: 20 }
- name: Install Rust
run: |
powershell -ExecutionPolicy Bypass -Command "Invoke-WebRequest -Uri https://win.rustup.rs/x86_64 -OutFile rustup-init.exe"
rustup-init.exe -y --default-toolchain stable
set PATH=%USERPROFILE%\.cargo\bin;%PATH%
rustc --version
shell: cmd
- name: Build frontend
run: cd web && npm ci && npm run build
shell: cmd
- name: Build Tauri bundles
run: cd web && set PATH=%USERPROFILE%\.cargo\bin;%PATH% && npx tauri build
shell: cmd
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: windows-bundles
path: |
web/src-tauri/target/release/bundle/msi/*.msi
web/src-tauri/target/release/bundle/nsis/*.exe
release:
needs: [build-linux, build-windows]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
- name: Create release
uses: actions/gitea-release-action@v3
env:
GITEA_TOKEN: ${{ secrets.RELEASE_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
files: |
linux-bundles/*
windows-bundles/*