project-client/.github/workflows/release.yml

44 lines
1.1 KiB
YAML
Raw Permalink Normal View History

2023-04-06 03:14:28 +00:00
name: Release
2023-04-03 23:58:24 +00:00
2023-04-06 03:14:28 +00:00
on:
2023-04-10 17:38:32 +00:00
push:
tags:
- v*
2023-04-03 23:58:24 +00:00
jobs:
2023-04-10 17:38:32 +00:00
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
2023-12-02 16:52:13 +00:00
include:
- os: macos-latest
platform: mac
- os: ubuntu-latest
platform: linux
- os: windows-latest
platform: windows
2023-04-10 17:38:32 +00:00
steps:
2023-12-02 16:44:52 +00:00
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2 # Install pnpm using packageManager key in package.json
2023-04-10 17:38:32 +00:00
2023-12-09 13:34:04 +00:00
- name: Use Node.js 18.18.2
2023-12-02 16:44:52 +00:00
uses: actions/setup-node@v3
2023-04-10 17:38:32 +00:00
with:
2023-12-09 13:34:04 +00:00
node-version: 18.18.2
2023-12-02 16:44:52 +00:00
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
2023-04-10 17:38:32 +00:00
- name: Run Electron Builder
2023-12-02 16:41:38 +00:00
run: |
2023-12-02 16:52:13 +00:00
pnpm electron-builder --${{ matrix.platform }} --publish always
2023-12-02 16:41:38 +00:00
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}