From cf4f80c82b0a033249cdfdded0708e69e3a1943c Mon Sep 17 00:00:00 2001 From: jeffvli Date: Fri, 31 Mar 2023 06:14:14 -0700 Subject: [PATCH] Split linux build to ubuntu runner (#57) --- .github/workflows/publish-linux.yml | 39 +++++++++++++++++++ .../{publish.yml => publish-macos.yml} | 4 +- 2 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/publish-linux.yml rename .github/workflows/{publish.yml => publish-macos.yml} (94%) diff --git a/.github/workflows/publish-linux.yml b/.github/workflows/publish-linux.yml new file mode 100644 index 00000000..5acf335f --- /dev/null +++ b/.github/workflows/publish-linux.yml @@ -0,0 +1,39 @@ +name: Publish Linux (Manual) + +on: workflow_dispatch + +jobs: + publish: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest] + + steps: + - name: Checkout git repo + uses: actions/checkout@v1 + + - name: Install Node and NPM + uses: actions/setup-node@v1 + with: + node-version: 16 + cache: npm + + - name: Install dependencies + run: | + npm install --legacy-peer-deps + + - name: Publish releases + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: nick-invision/retry@v2.8.2 + with: + timeout_minutes: 30 + max_attempts: 3 + retry_on: error + command: | + npm run postinstall + npm run build + npm exec electron-builder -- --publish always --linux + on_retry_command: npm cache clean --force diff --git a/.github/workflows/publish.yml b/.github/workflows/publish-macos.yml similarity index 94% rename from .github/workflows/publish.yml rename to .github/workflows/publish-macos.yml index f4d53a2e..cff56d00 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish-macos.yml @@ -1,4 +1,4 @@ -name: Publish (Manual) +name: Publish Windows and macOS (Manual) on: workflow_dispatch @@ -35,5 +35,5 @@ jobs: command: | npm run postinstall npm run build - npm exec electron-builder -- --publish always --win --mac --linux + npm exec electron-builder -- --publish always --win --mac on_retry_command: npm cache clean --force