From 2993a6994bf80ec51a5cc339f2ab97cf4ae0d899 Mon Sep 17 00:00:00 2001 From: "govert@muze.nl" Date: Fri, 21 Jun 2024 15:01:26 +0200 Subject: [PATCH] testing build actions --- .github/workflows/release.yml | 80 +++++++++++++++++++++++++---------- 1 file changed, 58 insertions(+), 22 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fa0ca86..dbd03e5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,26 +4,62 @@ on: push: branches: [ GovertDev ] jobs: - build: - strategy: - matrix: - os: - [ - { name: 'linux', image: 'ubuntu-latest' }, - { name: 'windows', image: 'windows-latest' }, - { name: 'macos', image: 'macos-latest' }, - ] - runs-on: ${{ matrix.os.image }} - steps: - - name: Github checkout - uses: actions/checkout@v4 - - name: Use Node.js - uses: actions/setup-node@v4 + build_on_linux: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@master with: - node-version: 20 - - run: npm install --save-dev @electron-forge/cli - - run: npx electron-forge import - - name: Publish app - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: npm run publish + node-version: 14 + - name: install dependencies + run: npm install + - name: build + run: npm run make + + build_on_mac: + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@master + with: + node-version: 14 + - name: install dependencies + run: npm install + - name: build + run: npm run make + + build_on_win: + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@master + with: + node-version: 14 + - name: install dependencies + run: npm install + - name: build + run: npm run make + + # build: + # strategy: + # matrix: + # os: + # [ + # { name: 'linux', image: 'ubuntu-latest' }, + # { name: 'windows', image: 'windows-latest' }, + # { name: 'macos', image: 'macos-latest' }, + # ] + # runs-on: ${{ matrix.os.image }} + # steps: + # - name: Github checkout + # uses: actions/checkout@v4 + # - name: Use Node.js + # uses: actions/setup-node@v4 + # with: + # node-version: 20 + # - run: npm install --save-dev @electron-forge/cli + # - run: npx electron-forge import + # - name: Publish app + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # run: npm run publish