diff --git a/.github/workflows/publish-linux-release.yml b/.github/workflows/publish-linux-release.yml new file mode 100644 index 00000000..4630a14b --- /dev/null +++ b/.github/workflows/publish-linux-release.yml @@ -0,0 +1,55 @@ +name: Publish Linux Release (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 }} + EP_RELEASE: true + 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 + + - name: Publish releases (arm64) + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + EP_RELEASE: true + 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 --arm64 + on_retry_command: npm cache clean --force diff --git a/.github/workflows/publish-linux.yml b/.github/workflows/publish-linux.yml index d7172d30..ca7e66ca 100644 --- a/.github/workflows/publish-linux.yml +++ b/.github/workflows/publish-linux.yml @@ -1,4 +1,4 @@ -name: Publish Linux (Manual) +name: Publish Linux Draft (Manual) on: workflow_dispatch diff --git a/.github/workflows/publish-macos-release.yml b/.github/workflows/publish-macos-release.yml new file mode 100644 index 00000000..3bb6c686 --- /dev/null +++ b/.github/workflows/publish-macos-release.yml @@ -0,0 +1,40 @@ +name: Publish Windows and macOS Release (Manual) + +on: workflow_dispatch + +jobs: + publish: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [macos-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 }} + EP_RELEASE: true + 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 --win --mac + on_retry_command: npm cache clean --force diff --git a/.github/workflows/publish-macos.yml b/.github/workflows/publish-macos.yml index ede05887..4222f398 100644 --- a/.github/workflows/publish-macos.yml +++ b/.github/workflows/publish-macos.yml @@ -1,4 +1,4 @@ -name: Publish Windows and macOS (Manual) +name: Publish Windows and macOS Draft (Manual) on: workflow_dispatch