refactor(ci): deduplicate electron-forge

This commit is contained in:
Elian Doran 2025-01-18 20:49:50 +02:00
parent f9082fa812
commit bfdb69292c
No known key found for this signature in database
3 changed files with 7 additions and 10 deletions

View File

@ -36,13 +36,12 @@ jobs:
- name: Set up node & dependencies - name: Set up node & dependencies
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: 20 node-version: 20
- name: Run the build - name: Run the build
uses: ./.github/actions/build uses: ./.github/actions/build
with: with:
os: ${{ matrix.os.name }} os: ${{ matrix.os.name }}
- name: Run electron-forge arch: ${{ matrix.arch }}
run: npm run make-electron -- --arch=${{ matrix.arch }}
- name: Prepare artifacts (Unix) - name: Prepare artifacts (Unix)
if: runner.os != 'windows' if: runner.os != 'windows'
run: | run: |

View File

@ -34,14 +34,13 @@ jobs:
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: 20 node-version: 20
- name: Update nightly version
run: npm run ci-update-nightly-version
- name: Run the build - name: Run the build
uses: ./.github/actions/build uses: ./.github/actions/build
with: with:
os: ${{ matrix.os.name }} os: ${{ matrix.os.name }}
- name: Update nightly version arch: ${{ matrix.arch }}
run: npm run ci-update-nightly-version
- name: Run electron-forge
run: npm run make-electron -- --arch=${{ matrix.arch }}
- name: Prepare artifacts (Unix) - name: Prepare artifacts (Unix)
if: runner.os != 'windows' if: runner.os != 'windows'
run: | run: |

View File

@ -37,9 +37,8 @@ jobs:
- name: Run the build - name: Run the build
uses: ./.github/actions/build uses: ./.github/actions/build
with: with:
os: ${{ matrix.os.name }} os: ${{ matrix.os.name }}
- name: Run electron-forge arch: ${{ matrix.arch }}
run: npm run make-electron -- --arch=${{ matrix.arch }}
- name: Prepare artifacts (Unix) - name: Prepare artifacts (Unix)
if: runner.os != 'windows' if: runner.os != 'windows'
run: | run: |