Skip to content

Commit

Permalink
Automate gh releases
Browse files Browse the repository at this point in the history
  • Loading branch information
corollari committed Jun 16, 2019
1 parent 4f95b0f commit 0c69518
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
12 changes: 6 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ deploy:
provider: releases
api_key: $GITHUB_TOKEN
file:
- index-linux
- index-macos
- index-win.exe
- pandoc-filter-linux
- pandoc-filter-macos
- pandoc-filter-win.exe
- caou-linux
- caou-macos
- caou-win.exe
- caou-pandoc-filter-linux
- caou-pandoc-filter-macos
- caou-pandoc-filter-win.exe
skip_cleanup: true
on:
tags: true
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ let usepackages

[usepackages, input]=removeUsePackage(input)

const pandocFilterPath = path.join(__dirname, "pandoc-filter.js")

let result = child_process.spawnSync("pandoc", ["-t", "latex", "-f", "markdown+lists_without_preceding_blankline+hard_line_breaks+raw_tex+raw_attribute", "-s", "--filter", pandocFilterPath], { input: input }).stdout
let result = child_process.spawnSync("pandoc", ["-t", "latex", "-f", "markdown+lists_without_preceding_blankline+hard_line_breaks+raw_tex+raw_attribute", "-s", "--filter", "caou-pandoc-filter"], { input: input }).stdout

result=String(result)

Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"pkg": "pkg --targets 'node10-linux,node10-macos,node10-win' index.js && pkg --targets 'node10-linux,node10-macos,node10-win' pandoc-filter.js"
"pkg": "pkg -o caou --targets 'node10-linux,node10-macos,node10-win' index.js && pkg -o caou-pandoc-filter --targets 'node10-linux,node10-macos,node10-win' pandoc-filter.js"
},
"bin": {
"caou": "./index.js"
"caou": "./index.js",
"caou-pandoc-filter": "./pandoc-filter.js"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 0c69518

Please sign in to comment.