Skip to content

day-by-day content 2024 #533

day-by-day content 2024

day-by-day content 2024 #533

Workflow file for this run

name: deploy
on:
push:
branches: [main]
jobs:
gh-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-node@v1
with:
node-version: "16.x"
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }}
- name: Release to GitHub Pages
working-directory: Teaching-Toolbox/website
env:
USE_SSH: true
GIT_USER: git
run: |
git config --global user.email "[email protected]"
git config --global user.name "julesfouchy"
if [ -e yarn.lock ]; then
yarn install --frozen-lockfile && cd ../.. && yarn install --frozen-lockfile
elif [ -e package-lock.json ]; then
npm ci && cd ../.. && npm ci
else
npm i && cd ../.. && npm i
fi
npm run deploy