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