Skip to content

Terry Feng - Google Summer of Code Documentation #371

Terry Feng - Google Summer of Code Documentation

Terry Feng - Google Summer of Code Documentation #371

Workflow file for this run

name: Build and deploy to GitHub Pages
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: write
jobs:
deploy:
name: Build and deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- name: Check out this repo
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: npm install and build
run: |
npm install
npm run build
- name: deploy _site to gh-pages
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: gh-pages
FOLDER: _site
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}