Skip to content

Merge pull request #23 from zaicodev/MIN-114-fix-update-date #65

Merge pull request #23 from zaicodev/MIN-114-fix-update-date

Merge pull request #23 from zaicodev/MIN-114-fix-update-date #65

Workflow file for this run

name: GitHub Pages
on:
push:
branches:
- master
pull_request:
jobs:
deploy:
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup node.js
uses: actions/setup-node@v2
with:
node-version: 16
- name: Install npm packages
run: yarn install
- name: Build Document
run: yarn build
- uses: actions/upload-artifact@v3
if: success()
with:
name: API Document
path: dist
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/master' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist