feat(ci): switch from travis to github actions

pull/832/head
ppoffice 2020-08-14 21:41:32 -04:00
parent 89a66d368c
commit a5d43dbd09
No known key found for this signature in database
GPG Key ID: B33335481CC0D498
1 changed files with 20 additions and 0 deletions

20
.github/workflows/github-pages.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: GitHub Pages
on:
push
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- run: npm install
- run: npx hexo algolia
env:
HEXO_ALGOLIA_INDEXING_KEY: ${{ secrets.HEXO_ALGOLIA_INDEXING_KEY }}
- run: npx hexo g
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public