35 lines
806 B
YAML
35 lines
806 B
YAML
name: Deploy to GitHub Pages
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '22'
|
|
cache: 'npm'
|
|
- run: npm ci
|
|
- name: Configure GitHub Pages
|
|
id: configure-pages
|
|
uses: actions/configure-pages@v4
|
|
- name: Build with Pages base path
|
|
run: npm run build -- --base=${{ steps.configure-pages.outputs.base_path }}
|
|
- uses: actions/upload-pages-artifact@v3
|
|
with:
|
|
path: dist
|
|
- id: deployment
|
|
uses: actions/deploy-pages@v4
|