automated release
This commit is contained in:
parent
7782e430aa
commit
fea44a75cb
2 changed files with 20 additions and 13 deletions
32
.github/workflows/cider-chores.yml
vendored
32
.github/workflows/cider-chores.yml
vendored
|
@ -7,11 +7,11 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
compile-and-post:
|
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:
|
steps:
|
||||||
- name: Checkout 🛎
|
- name: Checkout 🛎
|
||||||
|
@ -22,16 +22,22 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version-file: '.nvmrc'
|
node-version-file: '.nvmrc'
|
||||||
|
|
||||||
- name: Build/release Electron app
|
- name: Install Dependencies 📦
|
||||||
uses: samuelmeuli/action-electron-builder@v1.6.0
|
run: yarn install
|
||||||
with:
|
|
||||||
# GitHub token, automatically provided to the action
|
|
||||||
# (No need to define this secret in the repo settings)
|
|
||||||
github_token: ${{ secrets.github_token }}
|
|
||||||
|
|
||||||
# If the commit is tagged with a version (e.g. "v1.0.0"),
|
- name: Build 🏗
|
||||||
# release the app after building
|
run: yarn dist:all
|
||||||
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:
|
prettier:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
"dist": "npm run build && electron-builder --publish=never",
|
"dist": "npm run build && electron-builder --publish=never",
|
||||||
"dist:win": "npm run build && electron-builder --win --publish=never",
|
"dist:win": "npm run build && electron-builder --win --publish=never",
|
||||||
"dist:linux": "npm run build && electron-builder --linux --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",
|
"dist:universalNotWorking": "npm run build && electron-builder --mac --universal --publish:never",
|
||||||
"winget": "npm run build && electron-builder --win -c winget.json",
|
"winget": "npm run build && electron-builder --win -c winget.json",
|
||||||
"msft": "npm run build && electron-builder -c msft-package.json",
|
"msft": "npm run build && electron-builder -c msft-package.json",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue