Skip to content

Merge pull request #181 from CameronGray1210/main #67

Merge pull request #181 from CameronGray1210/main

Merge pull request #181 from CameronGray1210/main #67

Workflow file for this run

name: deployment
on:
push:
branches: [main]
jobs:
gh-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16.x'
cache: 'yarn'
- run: |
if [ -e yarn.lock ]; then
yarn install --frozen-lockfile
elif [ -e package-lock.json ]; then
npm ci
else
npm i
fi
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }}
- name: Generate Introduction-to-C.pdf
run: |
yarn serve-convert
# mv ./Introduction-to-C.pdf ./static
- name: Release to GitHub Pages
env:
USE_SSH: true
GIT_USER: git
run: |
git config --global user.name ${{ github.actor }}
yarn deploy