Skip to content

Commit 3195503

Browse files
committed
Deploy, update tests
1 parent ce64863 commit 3195503

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

Diff for: .github/workflows/deploy.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
on:
22
push:
3-
branches: ["master", "deploy-test"]
3+
branches: ["master"]
44

55
jobs:
66
depoy:
77
runs-on: ubuntu-latest
88
steps:
9-
- run: mkdir gh-pages
109
- uses: actions/checkout@v2
10+
- run: mkdir gh-pages
11+
- run: cp favicon.ico gh-pages
1112
- uses: ./
1213
with:
1314
format: html
1415
output: ./gh-pages/index.html
16+
- run: ls gh-pages
1517
- uses: peaceiris/actions-gh-pages@v2
1618
env:
1719
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
18-
PUBLISH_DIR: ./gh-pages
20+
PUBLISH_DIR: gh-pages
1921
PUBLISH_BRANCH: gh-pages

Diff for: action.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function invalidFormat(format) {
3535
return
3636
}
3737

38-
function jsonFormatter({humans, output}) {
38+
function jsonFormatter({humans}, {output}) {
3939
fs.writeSync(output, JSON.stringify(humans, null, 4))
4040
}
4141

Diff for: favicon.ico

6.93 KB
Binary file not shown.

Diff for: test.sh

+3
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ node action.js txt
77
# check default arg
88
node action.js >/dev/null
99
node action.js shell
10+
node action.js html
11+
node action.js txt /tmp/hu-output
12+
grep "Current humans" /tmp/hu-output
1013

0 commit comments

Comments
 (0)