mirror of
https://github.com/imgfloat/client.git
synced 2026-02-05 12:09:27 +00:00
38 lines
735 B
YAML
38 lines
735 B
YAML
name: Electron CI
|
|
|
|
on:
|
|
push:
|
|
branches: ['**']
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
lfs: true
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
|
|
- run: npm ci
|
|
|
|
- name: Build (publish only on master)
|
|
shell: bash
|
|
run: |
|
|
if [ "${GITHUB_REF}" = "refs/heads/master" ]; then
|
|
npx electron-builder --publish=always
|
|
else
|
|
npx electron-builder --publish=never
|
|
fi
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|