From fea44a75cbe9372d9f2df186a37f721c08b5fb27 Mon Sep 17 00:00:00 2001 From: Core Date: Sat, 18 May 2024 19:32:23 +0100 Subject: [PATCH] automated release --- .github/workflows/cider-chores.yml | 32 ++++++++++++++++++------------ package.json | 1 + 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/.github/workflows/cider-chores.yml b/.github/workflows/cider-chores.yml index 8a3691ec3..757d14fbf 100644 --- a/.github/workflows/cider-chores.yml +++ b/.github/workflows/cider-chores.yml @@ -7,11 +7,11 @@ on: jobs: compile-and-post: - runs-on: ${{ matrix.os }} + runs-on: ubuntu-latest + + container: + image: electronuserland/builder:wine - strategy: - matrix: - os: [macos-latest, ubuntu-latest, windows-latest] steps: - name: Checkout 🛎 @@ -22,16 +22,22 @@ jobs: with: node-version-file: '.nvmrc' - - name: Build/release Electron app - uses: samuelmeuli/action-electron-builder@v1.6.0 - with: - # GitHub token, automatically provided to the action - # (No need to define this secret in the repo settings) - github_token: ${{ secrets.github_token }} + - name: Install Dependencies 📦 + run: yarn install + + - name: Build 🏗 + run: yarn dist:all - # If the commit is tagged with a version (e.g. "v1.0.0"), - # release the app after building - release: ${{ startsWith(github.ref, 'refs/tags/v') }} + - name: Upload Release 🚀 + uses: softprops/action-gh-release@v2.0.5 + with: + files: | + ./dist/*.exe + ./dist/*.deb + ./dist/*.AppImage + ./dist/*.rpm + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} prettier: runs-on: ubuntu-latest diff --git a/package.json b/package.json index f0f6e8289..7c7e947d1 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "dist": "npm run build && electron-builder --publish=never", "dist:win": "npm run build && electron-builder --win --publish=never", "dist:linux": "npm run build && electron-builder --linux --publish=never", + "dist:all": "npm run build && electron-builder -wl --publish=never", "dist:universalNotWorking": "npm run build && electron-builder --mac --universal --publish:never", "winget": "npm run build && electron-builder --win -c winget.json", "msft": "npm run build && electron-builder -c msft-package.json",