You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.9 KiB
56 lines
1.9 KiB
name: Prepare release artifacts
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
tag:
|
|
description: Existing version tag matching package.json
|
|
required: true
|
|
type: string
|
|
permissions:
|
|
contents: read
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [windows-latest, macos-latest, ubuntu-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
env:
|
|
RELEASE_TAG: ${{ inputs.tag }}
|
|
CSC_LINK: ${{ runner.os == 'Windows' && secrets.CSC_LINK_WINDOWS || runner.os == 'macOS' && secrets.CSC_LINK_MACOS || '' }}
|
|
CSC_KEY_PASSWORD: ${{ runner.os == 'Windows' && secrets.CSC_KEY_PASSWORD_WINDOWS || runner.os == 'macOS' && secrets.CSC_KEY_PASSWORD_MACOS || '' }}
|
|
APPLE_ID: ${{ secrets.APPLE_ID }}
|
|
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
|
|
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ inputs.tag }}
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
- uses: pnpm/action-setup@v4
|
|
- run: pnpm install --frozen-lockfile
|
|
- run: pnpm release:check
|
|
- run: pnpm audit --prod
|
|
- run: pnpm format:check
|
|
- if: runner.os != 'Linux'
|
|
run: pnpm check
|
|
- if: runner.os == 'Linux'
|
|
run: xvfb-run --auto-servernum pnpm check
|
|
- if: runner.os != 'Linux'
|
|
run: pnpm test:e2e
|
|
- if: runner.os == 'Linux'
|
|
run: xvfb-run --auto-servernum pnpm test:e2e
|
|
- run: pnpm exec electron-builder --config electron-builder.config.cjs --publish never
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: release-${{ inputs.tag }}-${{ matrix.os }}
|
|
path: |
|
|
dist/*.exe
|
|
dist/*.dmg
|
|
dist/*.zip
|
|
dist/*.AppImage
|
|
dist/*.yml
|
|
dist/*.blockmap
|
|
if-no-files-found: error
|
|
|