From c37138c6f50e5c3ef05a5b065861f54fe1d498fa Mon Sep 17 00:00:00 2001 From: Fabio Di Stasio Date: Sun, 12 Jun 2022 19:58:22 +0200 Subject: [PATCH] ci: fix linux upload artifacts github action [skip ci] --- .github/workflows/build-linux.yml | 2 +- .github/workflows/build-mac.yml | 2 +- .github/workflows/build-win.yml | 2 +- .github/workflows/create-artifact-linux.yml | 19 ++++--------------- .github/workflows/test-e2e-linux.yml | 2 +- package.json | 2 +- 6 files changed, 9 insertions(+), 20 deletions(-) diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index aac24863..c98243d7 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -1,4 +1,4 @@ -name: Build/release [linux] +name: Build/release [LINUX] on: push diff --git a/.github/workflows/build-mac.yml b/.github/workflows/build-mac.yml index 8c79ef4c..10f92ead 100644 --- a/.github/workflows/build-mac.yml +++ b/.github/workflows/build-mac.yml @@ -1,4 +1,4 @@ -name: Build/release [mac] +name: Build/release [MAC] on: push diff --git a/.github/workflows/build-win.yml b/.github/workflows/build-win.yml index 4f6ccdab..d5379621 100644 --- a/.github/workflows/build-win.yml +++ b/.github/workflows/build-win.yml @@ -1,4 +1,4 @@ -name: Build/release [windows] +name: Build/release [WINDOWS] on: push diff --git a/.github/workflows/create-artifact-linux.yml b/.github/workflows/create-artifact-linux.yml index 22a2d030..c053ce4e 100644 --- a/.github/workflows/create-artifact-linux.yml +++ b/.github/workflows/create-artifact-linux.yml @@ -1,16 +1,11 @@ -name: Create artifact [linux] +name: Create artifact [LINUX] on: workflow_dispatch: {} jobs: - release: - runs-on: ${{ matrix.os }} - - strategy: - matrix: - os: [ubuntu-latest] - + build: + runs-on: ubuntu-latest steps: - name: Check out Git repository uses: actions/checkout@v3 @@ -20,12 +15,6 @@ jobs: npm install npm run build:local - - name: Build/release Electron app - uses: samuelmeuli/action-electron-builder@v1 - with: - github_token: ${{ secrets.github_token }} - release: ${{ startsWith(github.ref, 'refs/tags/v') }} - - name: Upload Artifact uses: actions/upload-artifact@v3 with: @@ -33,5 +22,5 @@ jobs: retention-days: 3 path: | build - !build/linux-unpacked + !build/*-unpacked !build/.icon-ico diff --git a/.github/workflows/test-e2e-linux.yml b/.github/workflows/test-e2e-linux.yml index 407fc365..a53ccfc2 100644 --- a/.github/workflows/test-e2e-linux.yml +++ b/.github/workflows/test-e2e-linux.yml @@ -1,4 +1,4 @@ -name: Test end-to-end [linux] +name: Test end-to-end [LINUX] on: push diff --git a/package.json b/package.json index 3f28e232..c6d638b2 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "compile:workers": "webpack --mode=production --config webpack.workers.config.js", "compile:renderer": "webpack --mode=production --config webpack.renderer.config.js", "build": "cross-env NODE_ENV=production npm run compile", - "build:local": "npm run build && electron-builder", + "build:local": "npm run build && electron-builder --publish never", "build:appx": "npm run build:local -- --win appx", "rebuild:electron": "rimraf ./dist && npm run postinstall", "release": "standard-version",