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