File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Simple workflow for deploying static content to GitHub Pages
2+ # (based on https://vitejs.dev/guide/static-deploy)
3+ name : Deploy to GitHub Pages
4+
5+ on :
6+ # Runs on pushes targeting the default branch
7+ push :
8+ branches : ['main']
9+
10+ # Allows you to run this workflow manually from the Actions tab
11+ workflow_dispatch :
12+
13+ # Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
14+ permissions :
15+ contents : read
16+ pages : write
17+ id-token : write
18+
19+ # Allow one concurrent deployment
20+ concurrency :
21+ group : pages
22+ cancel-in-progress : true
23+
24+ jobs :
25+ # Single deploy job since we're just deploying
26+ deploy :
27+ environment :
28+ name : github-pages
29+ url : ${{ steps.deployment.outputs.page_url }}
30+ runs-on : ubuntu-latest
31+ steps :
32+ - name : Checkout
33+ uses : actions/checkout@v4
34+ - name : Set up Corepack
35+ run : corepack enable
36+ - name : Set up Node
37+ uses : actions/setup-node@v4
38+ with :
39+ node-version : 24
40+ cache : pnpm
41+ - name : Install dependencies
42+ run : pnpm install
43+ - name : Build
44+ run : pnpm build
45+ - name : Setup Pages
46+ uses : actions/configure-pages@v4
47+ - name : Upload artifact
48+ uses : actions/upload-pages-artifact@v3
49+ with :
50+ # Upload dist folder
51+ path : ' ./dist'
52+ - name : Deploy to GitHub Pages
53+ id : deployment
54+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments