Deploy, update tests
This commit is contained in:
@@ -1,19 +1,21 @@
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ["master", "deploy-test"]
|
branches: ["master"]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
depoy:
|
depoy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- run: mkdir gh-pages
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
- run: mkdir gh-pages
|
||||||
|
- run: cp favicon.ico gh-pages
|
||||||
- uses: ./
|
- uses: ./
|
||||||
with:
|
with:
|
||||||
format: html
|
format: html
|
||||||
output: ./gh-pages/index.html
|
output: ./gh-pages/index.html
|
||||||
|
- run: ls gh-pages
|
||||||
- uses: peaceiris/actions-gh-pages@v2
|
- uses: peaceiris/actions-gh-pages@v2
|
||||||
env:
|
env:
|
||||||
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
||||||
PUBLISH_DIR: ./gh-pages
|
PUBLISH_DIR: gh-pages
|
||||||
PUBLISH_BRANCH: gh-pages
|
PUBLISH_BRANCH: gh-pages
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ function invalidFormat(format) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
function jsonFormatter({humans, output}) {
|
function jsonFormatter({humans}, {output}) {
|
||||||
fs.writeSync(output, JSON.stringify(humans, null, 4))
|
fs.writeSync(output, JSON.stringify(humans, null, 4))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 6.9 KiB |
Reference in New Issue
Block a user