Skip to content

Deploy to GitHub Pages #43

Deploy to GitHub Pages

Deploy to GitHub Pages #43

Workflow file for this run

name: Deploy to GitHub Pages
permissions:
id-token: write
pages: write
on:
push:
branches: [ "main" ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
cache: 'npm'
- run: npm ci
- run: npm run lint
- run: npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./dist
- name: Deploy GitHub Pages site
uses: actions/[email protected]
with:
token: ${{ github.token }}