Skip to content

chore: bump version for app (#21) #57

chore: bump version for app (#21)

chore: bump version for app (#21) #57

Workflow file for this run

name: Build and Release
on:
push:
branches:
- main
- "chore-*"
permissions:
contents: write
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- macos-latest
# - ubuntu-latest
# - windows-latest
include:
- os: macos-latest
make_command: make:mac
- os: ubuntu-latest
make_command: make:linux
- os: windows-latest
make_command: make:win
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: |
npm install -g @electron-forge/cli
npm ci
# - name: Import Code-Signing Certificates
# if: matrix.os == 'macos-latest'
# uses: Apple-Actions/import-codesign-certs@v2
# with:
# p12-file-base64: ${{ secrets.APPLE_CERTIFICATE_P12 }}
# p12-password: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
- name: Make Electron app
run: npm run ${{ matrix.make_command }}
# env:
# # Code signing environment variables for macOS
# CSC_LINK: ${{ secrets.APPLE_CERTIFICATE_P12 }}
# CSC_KEY_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
# # Notarization environment variables
# APPLE_ID: ${{ secrets.APPLE_ID }}
# APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
# APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-build
path: |
out/make/**/*.exe
out/make/**/*.msi
out/make/**/*.dmg
out/make/**/*.zip
if-no-files-found: error
- name: Publish Electron app
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run publish