-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 988 Bytes
/
deploy.yaml
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
name: Electron Forge Publish
on:
push:
branches:
- main
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Clear npm cache
run: npm cache clean --force
- name: Remove node_modules and package-lock.json
run: |
if [ -d "node_modules" ]; then rm -rf node_modules; fi
if [ -f "package-lock.json" ]; then rm package-lock.json; fi
shell: bash
- name: Install dependencies
run: npm install
- name: Run Electron Forge Publish
run: npm run publish
env:
GITHUB_TOKEN: ${{ secrets.MY_PERSONAL_ACCESS_TOKEN }}