Skip to content

Update main.yml

Update main.yml #1

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [ master ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install dependencies
run: npm install
- name: Build the site
run: npm run build
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: public