Clean up blog posts #12
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: Node.js + Next.js Build and Deploy | |
permissions: | |
contents: write | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# https://github.com/actions/checkout | |
- uses: actions/checkout@v3 | |
# a standard step for GitHub actions on Node | |
# https://github.com/actions/setup-node | |
- uses: actions/setup-node@v3 | |
with: | |
# update the Node version to meet your needs | |
node-version: 16 | |
cache: npm | |
- name: Build | |
run: | | |
npm ci | |
npm run build | |
npm run export | |
touch out/.nojekyll | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages | |
folder: out |