Skip to content

Update II. Policies for the Undergraduate College “ug-policies/res-life-conduct-policies/g-student-health-policies” #472

Update II. Policies for the Undergraduate College “ug-policies/res-life-conduct-policies/g-student-health-policies”

Update II. Policies for the Undergraduate College “ug-policies/res-life-conduct-policies/g-student-health-policies” #472

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout
uses: actions/checkout@v3
# Runs a single command using the runners shell
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Cache Node.js modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install dependencies
run: npm ci --legacy-peer-deps
- name: build
run: npm run build
- name: Deploy
if: github.ref == 'refs/heads/master'
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./public
publish_branch: site
github_token: ${{ secrets.GITHUB_TOKEN }}