Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.

Commit

Permalink
automated release
Browse files Browse the repository at this point in the history
  • Loading branch information
coredev-uk committed May 18, 2024
1 parent 7782e43 commit fea44a7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 13 deletions.
32 changes: 19 additions & 13 deletions .github/workflows/cider-chores.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 馃泿
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit fea44a7

Please sign in to comment.