Skip to content

update windows publish runner #159

update windows publish runner

update windows publish runner #159

Workflow file for this run

name: Publish
on:
push:
branches:
- master
jobs:
publish-win:
strategy:
matrix:
node: ['22']
os: [windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: pnpm i
- run: pnpm build
- run: pnpm electron-builder --publish onTagOrDraft --win
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish-linux:
strategy:
matrix:
node: ['22']
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: pnpm i
- run: pnpm build
- run: pnpm electron-builder --publish onTagOrDraft --linux
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish-mac:
strategy:
matrix:
node: ['22']
os: [macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: pnpm i
- run: pnpm build
- run: pnpm electron-builder --publish onTagOrDraft --mac
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# APPLE_ID: ${{ secrets.APPLE_ID }}
# APPLE_ID_PASS: ${{ secrets.APPLE_ID_PASS }}
# CSC_LINK: ${{ secrets.CSC_LINK }}
# CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}