Skip to content

指定部署分支

指定部署分支 #2

Workflow file for this run

name: Build Blog
on:
push:
branches:
- docusaurus
workflow_dispatch:
jobs:
blog-build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.GH_PAGES_BUILD }}
- name: Build GitHub Pages
env:
USE_SSH: true
GIT_USER: git
DEPLOYMENT_BRANCH: master
run: |
git config --global user.email "[email protected]"
git config --global user.name "gh-actions-blog-build"
npm i
npm run build
npm run deploy