-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
481 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,40 @@ | ||
name: Build/release | ||
name: Build and Release | ||
|
||
on: push | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
release: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [macos-latest, ubuntu-latest, windows-latest] | ||
os: [macos-latest, windows-latest, ubuntu-latest] | ||
|
||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v1 | ||
- name: Check out source code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Node.js, NPM and Yarn | ||
uses: actions/setup-node@v1 | ||
- name: Install Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
node-version: 14 | ||
|
||
- name: Build/release Electron app | ||
uses: samuelmeuli/action-electron-builder@v1 | ||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Build application | ||
run: npm run build | ||
|
||
- name: Test application | ||
run: npm test | ||
|
||
- name: Set up electron-builder | ||
uses: samuelmeuli/action-electron-builder@v2 | ||
with: | ||
# GitHub token, automatically provided to the action | ||
# (No need to define this secret in the repo settings) | ||
github_token: ${{ secrets.github_token }} | ||
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') }} | ||
- name: Publish application | ||
run: npm run release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<html> | ||
<head> | ||
<link | ||
type="text/css" | ||
rel="stylesheet" | ||
href="//cdn.jsdelivr.net/npm/jsmind@0.6/style/jsmind.css" | ||
/> | ||
<script | ||
type="text/javascript" | ||
src="//cdn.jsdelivr.net/npm/jsmind@0.6/es6/jsmind.js" | ||
></script> | ||
<!-- | ||
enable draggable node feature | ||
<script type="text/javascript" src="//cdn.jsdelivr.net/npm/jsmind@0.6/es6/jsmind.draggable-node.js"></script> | ||
--> | ||
</head> | ||
<body> | ||
<div id="jsmind_container"></div> | ||
|
||
<script type="text/javascript"> | ||
var mind = { | ||
// 3 data formats were supported ... | ||
// see documents for more information | ||
}; | ||
var options = { | ||
container: 'jsmind_container', | ||
theme: 'orange', | ||
editable: true, | ||
}; | ||
var jm = new jsMind(options); | ||
jm.show(mind); | ||
</script> | ||
</body> | ||
</html> |
Oops, something went wrong.