Skip to content

Commit

Permalink
feat: added a workflow for build and release
Browse files Browse the repository at this point in the history
  • Loading branch information
andreyxdd committed Oct 21, 2023
1 parent edd0346 commit 7ef4300
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 8 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build and release

on: push

jobs:
release:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]

steps:
- name: Check out the repo
uses: actions/checkout@v1

- name: Install Node.js, npm, and Yarn
uses: actions/setup-node@v1
with:
node-version: 10

- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1
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"),
# release the app after building
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
11 changes: 9 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "marketeye-desktop-app",
"description": "A private desktop app to analyze the stock market based on MarketEye API and electron-react-boilerplate",
"version": "1.4.0",
"version": "1.4.1",
"scripts": {
"build": "npm run build:main && npm run build:renderer",
"build:main": "cross-env NODE_ENV=production TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.main.prod.ts",
Expand Down Expand Up @@ -90,17 +90,17 @@
"publish": {
"provider": "github",
"owner": "andreyxdd",
"repo": "marketeye-desktop-app"
"repo": "marketeye-client"
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/andreyxdd/marketeye-desktop-app.git.git"
"url": "git+https://github.com/andreyxdd/marketeye-client.git.git"
},
"author": {
"name": "Andrey Volkov",
"name": "Andrei Volkov",
"email": "volkov@ualberta.ca",
"url": "https://linktr.ee/andreyxdd"
"url": "https://github.com/andreyxdd"
},
"license": "MIT",
"keywords": [
Expand All @@ -114,7 +114,7 @@
"market",
"marketeye"
],
"homepage": "https://github.com/andreyxdd/marketeye-desktop-app#readme",
"homepage": "https://github.com/andreyxdd/marketeye-client#readme",
"jest": {
"testURL": "http://localhost/",
"testEnvironment": "jsdom",
Expand Down

0 comments on commit 7ef4300

Please sign in to comment.