Skip to content

Commit

Permalink
up 2024-05-27
Browse files Browse the repository at this point in the history
  • Loading branch information
hktalent committed May 27, 2024
1 parent d789301 commit da89abf
Show file tree
Hide file tree
Showing 5 changed files with 481 additions and 17 deletions.
41 changes: 25 additions & 16 deletions .github/workflows/build.yml
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
34 changes: 34 additions & 0 deletions app/public/mind/index.html
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>
Loading

0 comments on commit da89abf

Please sign in to comment.