Skip to content

Merge pull request #23 from fromwhite/dependabot/npm_and_yarn/postcss… #35

Merge pull request #23 from fromwhite/dependabot/npm_and_yarn/postcss…

Merge pull request #23 from fromwhite/dependabot/npm_and_yarn/postcss… #35

name: Build and Deploy
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
env:
BASE_PATH: /doodles
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
with:
persist-credentials: false
- uses: actions/setup-node@v2-beta
with:
node-version: '18.x'
- uses: actions/cache@v2
with:
path: ${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}
- name: Install and Build 🔧
run: |
export REPOSITORY_NAME=${{ github.repository }}
npm install
npm run clean
npm run build:website
touch dist/.nojekyll
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: dist
CLEAN: true