Skip to content

add post: DAI saving #55

add post: DAI saving

add post: DAI saving #55

name: Pages
on:
push:
branches:
- hexo
jobs:
pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Use Node.js 12
uses: actions/setup-node@v2
with:
node-version: '12'
- name: Cache NPM dependencies
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.OS }}-npm-cache
restore-keys: |
${{ runner.OS }}-npm-cache
- name: Install Dependencies
run: yarn
- name: Build
run: npx hexo generate
- name: algolia
run: npx hexo algolia
env:
HEXO_ALGOLIA_INDEXING_KEY: ${{ secrets.HEXO_ALGOLIA_INDEXING_KEY }}
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public