public assets, config #3
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 NextJS Course Site to GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: npm install, build | |
run: | | |
npm install | |
npm run build | |
- name: Deploy site to gh-pages branch | |
uses: crazy-max/ghaction-github-pages@v2 | |
with: | |
target_branch: gh-pages | |
build_dir: out | |
# fqdn: sql.holt.courses | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |