-
-
Notifications
You must be signed in to change notification settings - Fork 373
66 lines (59 loc) · 1.72 KB
/
package.yml
File metadata and controls
66 lines (59 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Builds the desktop and plugin versions of the app.
# The plugin version is published to npm, while the desktop app packages
# are uploaded to a GitHub release for the latest app version tag.
name: Package and Publish
on:
workflow_dispatch:
push:
tags:
- '*'
permissions:
contents: write
pull-requests: write
issues: write
id-token: write # to enable use of OIDC for trusted publishing and npm provenance
jobs:
electron:
strategy:
matrix:
image: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.image }}
env:
CSC_IDENTITY_AUTO_DISCOVERY: true
CSC_LINK: ${{ secrets.CSC_LINK }}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v6
- name: Use Node.js LTS
uses: actions/setup-node@v6
with:
node-version: lts/*
cache: 'npm'
- name: Install dependencies (Node.js)
run: npm ci
- name: Build electron app
run: npm run build:electron
- name: build package
run: npx electron-builder build --x64 --arm64 --publish always
- name: Upload built packages
uses: actions/upload-artifact@v7
with:
name: artifact-${{ matrix.image }}
path: release/
plugin:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Use Node.js LTS
uses: actions/setup-node@v6
with:
node-version: lts/*
cache: 'npm'
- name: Install dependencies (Node.js)
run: npm ci
- name: generate contents
run: npm run build:plugin
- name: publish
run: npm publish
working-directory: plugins