File tree Expand file tree Collapse file tree 1 file changed +29
-9
lines changed
Expand file tree Collapse file tree 1 file changed +29
-9
lines changed Original file line number Diff line number Diff line change 1+ # Simple workflow for deploying static content to GitHub Pages
12name : Deploy static content to Pages
23
34on :
5+ # Runs on pushes targeting the default branch
46 push :
57 branches : ['main']
8+
9+ # Allows you to run this workflow manually from the Actions tab
610 workflow_dispatch :
711
12+ # Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
813permissions :
914 contents : read
1015 pages : write
1116 id-token : write
1217
18+ # Allow one concurrent deployment
19+ concurrency :
20+ group : ' pages'
21+ cancel-in-progress : true
22+
1323jobs :
24+ # Single deploy job since we're just deploying
1425 deploy :
1526 environment :
16- name : github-pages
27+ name : github-pages
28+ url : ${{ steps.deployment.outputs.page_url }}
1729 runs-on : ubuntu-latest
1830 steps :
19- - uses : actions/checkout@v5
20- - uses : actions/setup-node@v5
31+ - name : Checkout
32+ uses : actions/checkout@v5
33+ - name : Set up Node
34+ uses : actions/setup-node@v5
2135 with :
22- node-version : ' lts/*'
36+ node-version : lts/*
2337 cache : ' npm'
24- - run : npm ci
25- - run : npm run build
26- - uses : actions/configure-pages@v5
27- - uses : actions/upload-pages-artifact@v4
38+ - name : Install dependencies
39+ run : npm ci
40+ - name : Build
41+ run : npm run build
42+ - name : Setup Pages
43+ uses : actions/configure-pages@v5
44+ - name : Upload artifact
45+ uses : actions/upload-pages-artifact@v4
2846 with :
47+ # Upload dist folder
2948 path : ' ./dist'
30- - id : deployment
49+ - name : Deploy to GitHub Pages
50+ id : deployment
3151 uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments