Skip to content

Commit 0a1c6fd

Browse files
committed
use electron builder publishing
1 parent 5794117 commit 0a1c6fd

File tree

1 file changed

+4
-41
lines changed

1 file changed

+4
-41
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ permissions:
99
contents: write
1010

1111
jobs:
12-
build:
12+
release:
1313
runs-on: ${{ matrix.os }}
1414

1515
strategy:
@@ -28,44 +28,7 @@ jobs:
2828
- name: Install dependencies
2929
run: npm install
3030

31-
- name: Build application
32-
run: npm run build && electron-builder --publish never
33-
34-
- name: Upload artifacts (macOS)
35-
if: matrix.os == 'macos-latest'
36-
uses: actions/upload-artifact@v4
37-
with:
38-
name: macos-build
39-
path: |
40-
dist/*.dmg
41-
dist/*.zip
42-
43-
- name: Upload artifacts (Linux)
44-
if: matrix.os == 'ubuntu-latest'
45-
uses: actions/upload-artifact@v4
46-
with:
47-
name: linux-build
48-
path: |
49-
dist/*.AppImage
50-
dist/*.deb
51-
52-
release:
53-
needs: build
54-
runs-on: ubuntu-latest
55-
steps:
56-
- name: Download all artifacts
57-
uses: actions/download-artifact@v4
58-
with:
59-
path: artifacts
60-
61-
- name: Display structure of downloaded files
62-
run: ls -R artifacts
63-
64-
- name: Create Release
65-
uses: softprops/action-gh-release@v2
66-
with:
67-
files: |
68-
artifacts/macos-build/*
69-
artifacts/linux-build/*
31+
- name: Build and publish
32+
run: npm run dist
7033
env:
71-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)