fix: Add all files for commit on workflow #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
npm run build | |
touch out/.nojekyll | |
sed -i 's/\/\/ //g' next.config.js | |
sed -i 's/\/out\///g' .gitignore | |
git config --global user.email '[email protected]' | |
git config --global user.name 'paulcjy' | |
git add . | |
git commit -m 'Deploy' | |
git subtree push --prefix out origin gh-pages |