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- # https://github.com/actions/deploy-pages#usage
21name : Deploy to GitHub Pages
32
43on :
5- # Runs on pushes targeting the default branch
64 push :
75 branches : ["master"]
8-
9- # Allows you to run this workflow manually from the Actions tab
106 workflow_dispatch :
117
12- # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
138permissions :
149 contents : read
1510 pages : write
1611 id-token : write
1712
18- # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19- # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2013concurrency :
2114 group : " pages"
2215 cancel-in-progress : false
@@ -32,26 +25,20 @@ jobs:
3225 node-version : " 22"
3326 - name : Setup Bun
3427 uses : oven-sh/setup-bun@v2
35- # Pick your own package manager and build script
3628 - run : bun install
3729 - run : bunx nuxt build --preset github_pages
3830 - name : Upload artifact
3931 uses : actions/upload-pages-artifact@v3
4032 with :
4133 path : ./.output/public
42- # Deployment job
4334 deploy :
44- # Add a dependency to the build job
4535 needs : build
46- # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
4736 permissions :
48- pages : write # to deploy to Pages
49- id-token : write # to verify the deployment originates from an appropriate source
50- # Deploy to the github_pages environment
37+ pages : write
38+ id-token : write
5139 environment :
5240 name : github-pages
5341 url : ${{ steps.deployment.outputs.page_url }}
54- # Specify runner + deployment step
5542 runs-on : ubuntu-latest
5643 steps :
5744 - name : Deploy to GitHub Pages
You can’t perform that action at this time.
0 commit comments