Skip to content

Merge pull request #1299 from PJ-568/doc #57

Merge pull request #1299 from PJ-568/doc

Merge pull request #1299 from PJ-568/doc #57

Workflow file for this run

name: GitHub Pages
on: push
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14'
- run: npm install
- run: npx hexo algolia
env:
HEXO_ALGOLIA_INDEXING_KEY: ${{ secrets.HEXO_ALGOLIA_INDEXING_KEY }}
- run: NODE_ENV=production npx hexo g
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
force_orphan: true