Sync from GitHub #64
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
name: Deploy to GitHub Pages | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 'lts/*' | |
- name: Build project | |
run: | | |
if [ ! -d public ]; then mkdir public; fi | |
find . -mindepth 1 -maxdepth 1 ! -name public -exec cp -r {} public/ \; | |
echo "gbox.ggbond.org" > public/CNAME | |
ls -R public | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
personal_token: ${{ secrets.PAT_TOKEN }} | |
publish_dir: ./public | |
publish_branch: gh-pages |