Skip to content

chore: enhance macOS entitlements and permissions in package.json #11

chore: enhance macOS entitlements and permissions in package.json

chore: enhance macOS entitlements and permissions in package.json #11

Workflow file for this run

name: Build and Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
packages: write
issues: write
pull-requests: write
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install dependencies
run: npm install
- name: Build React app
run: npm run build
- name: Build and release Electron app
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
npm run dist -- --linux AppImage deb
elif [ "$RUNNER_OS" == "Windows" ]; then
npm run dist -- --win
else
npm run dist -- --mac
fi
shell: bash
- name: Upload artifacts
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
release/*.AppImage
release/*.deb
release/*.exe
release/*.dmg
draft: false
prerelease: false
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}