Skip to content

Use vite for build

Use vite for build #5

Workflow file for this run

name: Pages
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Setup Node
uses: actions/setup-node@v3
with:
cache: yarn
- name: Install project dependencies
run: yarn install
- name: Build pages
run: yarn pages:build
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: 'public'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1