Skip to content

Commit 3a3ad43

Browse files
committed
fix: Simplify workflow to Windows-only build
- Remove matrix strategy, use windows-latest directly - Remove all certificate and signing requirements - Comment out separate release creation job - Use standard GITHUB_TOKEN - Focus on basic Windows executable build only
1 parent 77bbc3a commit 3a3ad43

1 file changed

Lines changed: 21 additions & 38 deletions

File tree

.github/workflows/release.yml

Lines changed: 21 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@ on:
77

88
jobs:
99
release:
10-
runs-on: ${{ matrix.os }}
11-
12-
strategy:
13-
matrix:
14-
os: [windows-latest] # ubuntu-latest, macos-latest
10+
runs-on: windows-latest
1511

1612
steps:
1713
- name: Check out Git repository
@@ -29,42 +25,29 @@ jobs:
2925
uses: samuelmeuli/action-electron-builder@v1
3026
with:
3127
# GitHub token, automatically provided to the action
32-
github_token: ${{ secrets.GIT_TOKEN }}
28+
github_token: ${{ secrets.GITHUB_TOKEN }}
3329

3430
# If the commit is tagged with a version (e.g. "v1.0.0"),
3531
# release the app after building
3632
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
37-
38-
# Build for different platforms
39-
windows_certs: ${{ secrets.WINDOWS_CERTS }}
40-
windows_certs_password: ${{ secrets.WINDOWS_CERTS_PASSWORD }}
41-
env:
42-
# macOS notarization API key
43-
API_KEY_ID: ${{ secrets.API_KEY_ID }}
44-
API_KEY_ISSUER_ID: ${{ secrets.API_KEY_ISSUER_ID }}
45-
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
46-
CSC_LINK: ${{ secrets.CSC_LINK }}
4733

4834
# Job for creating GitHub release
49-
create-release:
50-
runs-on: ubuntu-latest
51-
needs: release
52-
if: startsWith(github.ref, 'refs/tags/v')
53-
54-
steps:
55-
- name: Check out Git repository
56-
uses: actions/checkout@v4
57-
58-
- name: Create Release
59-
uses: softprops/action-gh-release@v1
60-
with:
61-
files: |
62-
dist/*.exe
63-
# dist/*.dmg
64-
# dist/*.AppImage
65-
# dist/*.deb
66-
draft: false
67-
prerelease: false
68-
generate_release_notes: true
69-
env:
70-
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
35+
# create-release:
36+
# runs-on: ubuntu-latest
37+
# needs: release
38+
# if: startsWith(github.ref, 'refs/tags/v')
39+
#
40+
# steps:
41+
# - name: Check out Git repository
42+
# uses: actions/checkout@v4
43+
#
44+
# - name: Create Release
45+
# uses: softprops/action-gh-release@v1
46+
# with:
47+
# files: |
48+
# dist/*.exe
49+
# draft: false
50+
# prerelease: false
51+
# generate_release_notes: true
52+
# env:
53+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)