Skip to content

Update README.md

Update README.md #8

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main # Trigger the workflow on pushes to the main branch
permissions:
contents: read
pages: write
id-token: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Checkout code
uses: actions/checkout@v3
# Set up Node.js
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
# Install dependencies and build the project
- name: Install dependencies and build
run: |
cd src
npm install
npm run build
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload dist repository
path: './src/dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4