update windows publish runner #159
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |