Skip to content

Commit 93bbc7f

Browse files
committed
fix: Use electron-builder publish
1 parent 8cc4902 commit 93bbc7f

File tree

1 file changed

+5
-34
lines changed

1 file changed

+5
-34
lines changed

.github/workflows/build.yml

+5-34
Original file line numberDiff line numberDiff line change
@@ -42,46 +42,17 @@ jobs:
4242
env:
4343
CSC_LINK: ${{ secrets.CSC_LINK }}
4444
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
45-
- name: Publish Caprine for macOS
46-
if: startsWith(matrix.os, 'macos')
47-
uses: softprops/action-gh-release@v2
48-
with:
49-
draft: true
50-
files: |
51-
dist/Caprine-${{ steps.release_tag.outputs.value }}-arm64-mac.zip
52-
dist/Caprine-${{ steps.release_tag.outputs.value }}-arm64-mac.zip.blockmap
53-
dist/Caprine-${{ steps.release_tag.outputs.value }}-arm64.dmg
54-
dist/Caprine-${{ steps.release_tag.outputs.value }}-arm64.dmg.blockmap
55-
dist/Caprine-${{ steps.release_tag.outputs.value }}-mac.zip
56-
dist/Caprine-${{ steps.release_tag.outputs.value }}-mac.zip.blockmap
57-
dist/Caprine-${{ steps.release_tag.outputs.value }}.dmg
58-
dist/Caprine-${{ steps.release_tag.outputs.value }}.dmg.blockmap
59-
dist/latest-mac.yml
45+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6046
- name: Package Caprine for Windows
6147
if: startsWith(matrix.os, 'windows')
6248
run: npm run dist:win
63-
- name: Publish Caprine for Windows
64-
if: startsWith(matrix.os, 'windows')
65-
uses: softprops/action-gh-release@v2
66-
with:
67-
draft: true
68-
files: |
69-
dist/Caprine-Setup-${{ steps.release_tag.outputs.value }}.exe
70-
dist/Caprine-Setup-${{ steps.release_tag.outputs.value }}.exe.blockmap
71-
dist/latest.yml
49+
env:
50+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7251
- name: Package Caprine for Linux
7352
if: startsWith(matrix.os, 'ubuntu')
7453
run: npm run dist:linux
75-
- name: Publish Caprine for Linux
76-
if: startsWith(matrix.os, 'ubuntu')
77-
uses: softprops/action-gh-release@v2
78-
with:
79-
draft: true
80-
files: |
81-
dist/Caprine-${{ steps.release_tag.outputs.value }}.AppImage
82-
dist/caprine_${{ steps.release_tag.outputs.value }}_amd64.deb
83-
dist/caprine_${{ steps.release_tag.outputs.value }}_amd64.snap
84-
dist/latest-linux.yml
54+
env:
55+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8556
- name: Upload to Snapcraft
8657
if: startsWith(matrix.os, 'ubuntu')
8758
uses: snapcore/action-publish@v1

0 commit comments

Comments
 (0)