Skip to content

Commit 7c5c919

Browse files
committed
ci: github actions deploy release 👷
1 parent 75ce54a commit 7c5c919

File tree

2 files changed

+21
-11
lines changed

2 files changed

+21
-11
lines changed

.github/workflows/release.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,23 @@ on:
1010

1111
jobs:
1212
release:
13-
runs-on: ubuntu-latest
13+
runs-on: ${{ matrix.os }}
14+
15+
strategy:
16+
matrix:
17+
os: [windows-latest, macOS-latest, ubuntu-latest]
18+
1419
steps:
15-
- uses: actions/checkout@v3
16-
with:
17-
fetch-depth: 0
20+
- name: Check out Git repository
21+
uses: actions/checkout@v1
1822

19-
- uses: actions/setup-node@v3
23+
- name: Install Node.js, NPM and Pnpm
24+
uses: actions/setup-node@v1
2025
with:
21-
node-version: 16.x
22-
23-
- run: npx githublogen
26+
node-version: 14
27+
- name: Build/release Electron app
2428
env:
25-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
29+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
run: |
31+
pnpm install
32+
pnpm run build --publish always

electron-builder.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,11 @@
3838
},
3939
"publish": [
4040
{
41-
"provider": "generic",
42-
"url": "http://127.0.0.1:8080"
41+
"provider": "github",
42+
"owner": "typeofNaN",
43+
"repo": "typeofNaN/tim-electron-chat",
44+
"token": "${secrets.GITHUB_TOKEN}",
45+
"releaseType": "release"
4346
}
4447
],
4548
"releaseInfo": {

0 commit comments

Comments
 (0)