Skip to content

chore: rename .prettierrc to .prettierrc.json for syntax highlighting… #43

chore: rename .prettierrc to .prettierrc.json for syntax highlighting…

chore: rename .prettierrc to .prettierrc.json for syntax highlighting… #43

name: Build and deploy the website
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Set up Node.js
uses: actions/setup-node@v7
with:
node-version: 22
cache: 'npm'
- name: Install npm dependencies
run: npm ci
- name: Build Astro site
run: npm run build
- name: Upload build artifact
uses: actions/upload-pages-artifact@v5
with:
path: ./dist
deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5