Skip to content

Update github action #3

Update github action

Update github action #3

Workflow file for this run

name: Build and Deploy
on:
push:
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: '18.17.0'
- name: Install Dependencies
run: |
rm -rf node_modules
rm package-lock.json
npm install
npm ci
- name: Build and Export
run: |
npm run build
env:
NEXT_PUBLIC_SITE_URL: 'tristanduncombe.com'
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: main
folder: out