Skip to content

fix: Add git pull

fix: Add git pull #9

Workflow file for this run

on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: lts/*
- run: |
npm ci
sed -i 's/\/\/ //g' next.config.js
sed -i 's/\/out\///g' .gitignore
npm run build
touch out/.nojekyll
git config --global user.email '[email protected]'
git config --global user.name 'paulcjy'
git add out/
git commit -m 'Deploy'
git pull
git subtree push --prefix out origin gh-pages