Skip to content

Prepare DesktopClaw v0.1.3 release #57

Prepare DesktopClaw v0.1.3 release

Prepare DesktopClaw v0.1.3 release #57

Workflow file for this run

name: Build and Release DesktopClaw
on:
workflow_dispatch:
push:
branches:
- main
tags:
- 'v*.*.*'
permissions:
contents: write
pull-requests: write
jobs:
build-windows:
name: Build Windows
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: npm
- name: Install dependencies
run: npm install
- name: Build Windows installer and portable app
run: npx electron-builder --win nsis portable --publish never
- name: Upload Windows artifacts
uses: actions/upload-artifact@v4
with:
name: DesktopClaw-windows
path: dist/*.exe
if-no-files-found: error
build-macos:
name: Build macOS
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: npm
- name: Install dependencies
run: npm install
- name: Build macOS DMG and ZIP
run: npx electron-builder --mac dmg zip --publish never
env:
CSC_IDENTITY_AUTO_DISCOVERY: 'false'
- name: Upload macOS artifacts
uses: actions/upload-artifact@v4
with:
name: DesktopClaw-macos
path: |
dist/*.dmg
dist/*.zip
if-no-files-found: error
release:
name: Publish GitHub Release
needs:
- build-windows
- build-macos
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
path: release-artifacts
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
body_path: RELEASE_NOTES.md
files: release-artifacts/**/*
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN || github.token }}