mirror of
https://github.com/BradGroux/veritas-kanban.git
synced 2026-12-02 02:37:17 +00:00
Consolidate reviewed workflow action revisions from #1584, #1643, #1644, #1645, and #1646. Local policy tests and static checks passed. GitHub Actions remains disabled.
176 lines
5.8 KiB
YAML
176 lines
5.8 KiB
YAML
name: Desktop Artifacts
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
types: [opened, synchronize, reopened, labeled, unlabeled]
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
NODE_VERSION: '22'
|
|
|
|
jobs:
|
|
mac-unsigned:
|
|
name: Unsigned macOS Artifact
|
|
if: >-
|
|
github.event_name == 'workflow_dispatch' ||
|
|
contains(github.event.pull_request.labels.*.name, 'ci:full')
|
|
runs-on: macos-15
|
|
steps:
|
|
- name: Record milestone selection
|
|
run: |
|
|
{
|
|
echo "### Unsigned macOS artifact milestone"
|
|
echo
|
|
echo "- Trigger: \`$GITHUB_EVENT_NAME\`"
|
|
echo "- Reason: explicit \`ci:full\` or manual milestone"
|
|
} >> "$GITHUB_STEP_SUMMARY"
|
|
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
|
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
|
|
|
|
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
|
with:
|
|
node-version: ${{ env.NODE_VERSION }}
|
|
cache: pnpm
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Build workspace
|
|
run: pnpm build
|
|
|
|
- name: Prepare desktop runtime payload
|
|
run: pnpm --filter @veritas-kanban/desktop package:prepare
|
|
|
|
- name: Build unsigned macOS DMG and update metadata
|
|
working-directory: desktop
|
|
env:
|
|
CSC_IDENTITY_AUTO_DISCOVERY: 'false'
|
|
run: node ./node_modules/electron-builder/cli.js --mac dmg zip --publish never --config.mac.identity=null --config.mac.notarize=false
|
|
|
|
- name: Upload desktop artifacts
|
|
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
with:
|
|
name: veritas-kanban-mac-unsigned
|
|
path: |
|
|
desktop/release/*.dmg
|
|
desktop/release/*.zip
|
|
desktop/release/*.yml
|
|
desktop/release/*.blockmap
|
|
if-no-files-found: error
|
|
retention-days: 14
|
|
|
|
linux-unsigned:
|
|
name: Unsigned Linux Artifacts
|
|
if: >-
|
|
github.event_name == 'workflow_dispatch' ||
|
|
contains(github.event.pull_request.labels.*.name, 'ci:full')
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- name: Record milestone selection
|
|
run: |
|
|
{
|
|
echo "### Unsigned Linux artifact milestone"
|
|
echo
|
|
echo "- Trigger: \`$GITHUB_EVENT_NAME\`"
|
|
echo "- Reason: explicit \`ci:full\` or manual milestone"
|
|
} >> "$GITHUB_STEP_SUMMARY"
|
|
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
|
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
|
|
|
|
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
|
with:
|
|
node-version: ${{ env.NODE_VERSION }}
|
|
cache: pnpm
|
|
|
|
- name: Install Linux packaging tools
|
|
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends fakeroot libarchive-tools rpm
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Build workspace
|
|
run: pnpm build
|
|
|
|
- name: Prepare desktop runtime payload
|
|
run: pnpm --filter @veritas-kanban/desktop package:prepare
|
|
|
|
- name: Build unsigned Linux preview AppImage, deb, and rpm artifacts
|
|
working-directory: desktop
|
|
env:
|
|
CSC_IDENTITY_AUTO_DISCOVERY: 'false'
|
|
run: node ./node_modules/electron-builder/cli.js --linux AppImage deb rpm --x64 --publish never
|
|
|
|
- name: Upload Linux preview desktop artifacts
|
|
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
with:
|
|
name: veritas-kanban-linux-unsigned
|
|
path: |
|
|
desktop/release/*.AppImage
|
|
desktop/release/*.deb
|
|
desktop/release/*.rpm
|
|
desktop/release/*.yml
|
|
desktop/release/*.blockmap
|
|
if-no-files-found: error
|
|
retention-days: 14
|
|
|
|
windows-unsigned:
|
|
name: Unsigned Windows Artifacts
|
|
if: >-
|
|
github.event_name == 'workflow_dispatch' ||
|
|
contains(github.event.pull_request.labels.*.name, 'ci:full')
|
|
runs-on: windows-2025
|
|
steps:
|
|
- name: Record milestone selection
|
|
shell: bash
|
|
run: |
|
|
{
|
|
echo "### Unsigned Windows artifact milestone"
|
|
echo
|
|
echo "- Trigger: \`$GITHUB_EVENT_NAME\`"
|
|
echo "- Reason: explicit \`ci:full\` or manual milestone"
|
|
} >> "$GITHUB_STEP_SUMMARY"
|
|
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
|
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
|
|
|
|
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
|
with:
|
|
node-version: ${{ env.NODE_VERSION }}
|
|
cache: pnpm
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Build workspace
|
|
run: pnpm build
|
|
|
|
- name: Prepare desktop runtime payload
|
|
run: pnpm --filter @veritas-kanban/desktop package:prepare
|
|
|
|
- name: Build unsigned Windows preview NSIS and ZIP artifacts
|
|
working-directory: desktop
|
|
env:
|
|
CSC_IDENTITY_AUTO_DISCOVERY: 'false'
|
|
run: node ./node_modules/electron-builder/cli.js --win nsis zip --x64 --publish never
|
|
|
|
- name: Upload Windows preview desktop artifacts
|
|
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
with:
|
|
name: veritas-kanban-windows-unsigned
|
|
path: |
|
|
desktop/release/*.exe
|
|
desktop/release/*.zip
|
|
desktop/release/*.yml
|
|
desktop/release/*.blockmap
|
|
if-no-files-found: error
|
|
retention-days: 14
|