File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy to GitHub Pages
2
+ on :
3
+ workflow_dispatch :
4
+ push :
5
+ branches :
6
+ - website
7
+ jobs :
8
+ build :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v4
12
+ with :
13
+ ref : website
14
+ - run : corepack enable
15
+ - uses : actions/setup-node@v4
16
+ with :
17
+ node-version : " 20"
18
+ # Pick your own package manager and build script
19
+ - run : npm install
20
+ - run : npx nuxt build --preset github_pages
21
+ - name : Upload artifact
22
+ uses : actions/upload-pages-artifact@v3
23
+ with :
24
+ path : ./.output/public
25
+ # Deployment job
26
+ deploy :
27
+ # Add a dependency to the build job
28
+ needs : build
29
+ # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
30
+ permissions :
31
+ pages : write # to deploy to Pages
32
+ id-token : write # to verify the deployment originates from an appropriate source
33
+ # Deploy to the github_pages environment
34
+ environment :
35
+ name : github_pages
36
+ url : ${{ steps.deployment.outputs.page_url }}
37
+ # Specify runner + deployment step
38
+ runs-on : ubuntu-latest
39
+ steps :
40
+ - name : Deploy to GitHub Pages
41
+ id : deployment
42
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments