Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 775 Bytes

File metadata and controls

35 lines (26 loc) · 775 Bytes

vuepress-github-actions

使用github actions 部署 GitHub pages

::: tip 如果你的github不支持 actions 点击 去注册一下就行了 :::

GitHub Actions 入门教程

name: GitHub Actions Build and Deploy Demo
on:
  push:
    branches:
      - master
jobs:
  build-and-deploy:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout
      uses: actions/checkout@master

    - name: Build and Deploy
      uses: JamesIves/github-pages-deploy-action@master
      env:
        ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
        BRANCH: gh-pages
        FOLDER: .vuepress/dist
        BUILD_SCRIPT: npm install && npm run build