automated release

This commit is contained in:
Core 2024-05-18 19:32:23 +01:00
parent 7782e430aa
commit fea44a75cb
No known key found for this signature in database
2 changed files with 20 additions and 13 deletions

View file

@ -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
# 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: Build 🏗
run: yarn dist:all
- 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

View file

@ -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",