File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change 11# Sample workflow for building and deploying a VitePress site to GitHub Pages
22#
33name : Deploy VitePress site to Pages
4-
54on :
65 # Runs on pushes targeting the `main` branch. Change this to `master` if you're
76 # using the `master` branch as the default branch.
87 push :
98 branches : [main]
10-
119 # Allows you to run this workflow manually from the Actions tab
1210 workflow_dispatch :
13-
1411# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1512permissions :
1613 contents : read
1714 pages : write
1815 id-token : write
19-
2016# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
2117# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2218concurrency :
2319 group : pages
2420 cancel-in-progress : false
25-
2621jobs :
2722 # Build job
2823 build :
5348 env :
5449 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5550 - name : Upload artifact
56- uses : actions/upload-pages-artifact@v2
51+ uses : actions/upload-pages-artifact@v3
5752 with :
5853 path : docs/.vitepress/dist
59-
6054 # Deployment job
6155 deploy :
6256 environment :
6862 steps :
6963 - name : Deploy to GitHub Pages
7064 id : deployment
71- uses : actions/deploy-pages@v2
65+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments