From 1660971cc363a99717783168cef26d1b9b61a821 Mon Sep 17 00:00:00 2001 From: Derek Wang Date: Sun, 23 Mar 2025 15:31:16 -0700 Subject: [PATCH] ci: give electron action permission --- .github/workflows/electron.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/electron.yml b/.github/workflows/electron.yml index 29ff2a67..7517f6ce 100644 --- a/.github/workflows/electron.yml +++ b/.github/workflows/electron.yml @@ -8,13 +8,16 @@ on: tags: - 'v*' +permissions: + contents: write + jobs: build: runs-on: ${{ matrix.os }} strategy: matrix: - os: [macos-latest, ubuntu-latest, windows-latest] + os: [ubuntu-latest, windows-latest] # TODO: add back macos-latest when notarize is figured out node-version: [18.18.0] fail-fast: false @@ -80,7 +83,7 @@ jobs: - name: Create Release uses: softprops/action-gh-release@v2 with: - draft: ${{ github.ref_type == 'branch' }} + draft: ${{ github.event_name == 'workflow_dispatch' || github.ref_type == 'branch' }} files: | dist/*.exe dist/*.dmg