Skip to content

Commit

Permalink
Merge pull request #1 from KorigamiK/master
Browse files Browse the repository at this point in the history
Continuous integration for binary releases
  • Loading branch information
TommyX12 authored Jul 3, 2021
2 parents 010f5eb + 4757ac8 commit 14ca98e
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 2 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Release/Linux, Windows, Mac

on: push

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
- uses: actions/checkout@v1

- name: "Install Node.js, NPM and Yarn"
uses: actions/setup-node@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
node-version: 14

- name: Install dependencies & Build release
run: |
npm i
npm run electron:build
- name: Created files
run: ls -l ./release

- name: Upload release
uses: xresloader/upload-to-github-release@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "release/*.exe;LICENSE.md;release/*.deb;release/*.AppImage;release/*.dmg"
tag_name: continuous_releases
overwrite: true
verbose: true
draft: false
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ so you'll never have to worry about unrealistic deadlines or todo-list overload.

VIR is built
with [angular-electron](https://github.com/maximegris/angular-electron). Windows, MacOS, and Linux are all supported.
Grab your binary from the [releases section](https://github.com/TommyX12/VIR/releases).

### Building the Binary
### Building the Binary Yourself

1. Clone the repository:
```bash
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"electron:serve-tsc": "tsc -p tsconfig.serve.json",
"electron:serve": "wait-on tcp:4200 && npm run electron:serve-tsc && npx electron . --serve",
"electron:local": "npm run build:prod && npx electron .",
"electron:build": "npm run build:prod && electron-builder build",
"electron:build": "npm run build:prod && electron-builder build --publish never",
"test": "ng test --watch=false",
"test:watch": "ng test",
"e2e": "npm run build:prod && cross-env TS_NODE_PROJECT='e2e/tsconfig.e2e.json' mocha --timeout 300000 --require ts-node/register e2e/**/*.e2e.ts",
Expand Down

0 comments on commit 14ca98e

Please sign in to comment.