ci: give electron action permission

This commit is contained in:
Derek Wang 2025-03-23 15:31:16 -07:00
parent 1ce6ad6b59
commit 1660971cc3

View File

@ -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