Skip to content

Commit

Permalink
Add build action for the desktop apps (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
pbek committed Aug 3, 2021
1 parent 2ef0b7a commit 352391f
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/build-desktop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build Desktop App

on:
push:
branches: [ master, feature/nwjs ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: set_var
run: |
content=`cat ./package.json`
# the following lines are only required for multi line json
content="${content//'%'/'%25'}"
content="${content//$'\n'/'%0A'}"
content="${content//$'\r'/'%0D'}"
# end of optional handling for multi line json
echo "::set-output name=packageJson::$content"
- run: |
echo "${{fromJson(steps.set_var.outputs.packageJson).name}}"
echo "${{fromJson(steps.set_var.outputs.packageJson).version}}"
- name: Build App
run: |
npm install
npm build:nw
- uses: actions/upload-artifact@v2
name: Store ZIPs
with:
name: ZIPs
path: dist/*.zip
- uses: actions/upload-artifact@v2
name: Store EXEs
with:
name: EXEs
path: dist/*.exe
- uses: actions/upload-artifact@v2
name: Store 7z
with:
name: 7z
path: dist/*.7z

0 comments on commit 352391f

Please sign in to comment.