Skip to content

Update main.yml

Update main.yml #59

Workflow file for this run

name: Build and Deploy
on: [push]
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Install and Build 🔧
uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- run: yarn install --immutable --immutable-cache --check-cache
- run: yarn build
- run: mkdir out
- run: yarn run next export -o ./out
- run: touch ./out/.nojekyll
env:
CI: true
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: out
branch: gh-pages
clean: true