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