File tree Expand file tree Collapse file tree 1 file changed +62
-0
lines changed Expand file tree Collapse file tree 1 file changed +62
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy documentation to GitHub Pages
2+
3+ on :
4+ # Trigger the workflow every time you push to the `master` branch
5+ # Using a different branch name? Replace `master` with your branch’s name
6+ push :
7+ branches : [master]
8+ # Allows you to run this workflow manually from the Actions tab on GitHub.
9+ workflow_dispatch :
10+
11+ # Allow this job to clone the repo and create a page deployment
12+ permissions :
13+ contents : read
14+ pages : write
15+ id-token : write
16+
17+ jobs :
18+ build :
19+ runs-on : ubuntu-latest
20+ steps :
21+ - name : Checkout Code Repository
22+ uses : actions/checkout@v4
23+ with :
24+ fetch-depth : 1
25+
26+ - name : Print commit id, message and tag
27+ run : |
28+ git show -s --format='%h %s'
29+ echo "github.ref -> {{ github.ref }}"
30+
31+ - name : Install pnpm
32+ uses : pnpm/action-setup@v4
33+ with :
34+ run_install : false
35+
36+ - name : Use Node.js
37+ uses : actions/setup-node@v4
38+ with :
39+ node-version : 22.x
40+ cache : ' pnpm'
41+
42+ - name : Install dependencies
43+ run : pnpm install --recursive --frozen-lockfile
44+
45+ - name : Build all
46+ run : pnpm build
47+
48+ - name : Upload artifact
49+ uses : actions/upload-pages-artifact@v3
50+ with :
51+ path : ./apps/phoure-demo/dist
52+
53+ deploy :
54+ needs : build
55+ runs-on : ubuntu-latest
56+ environment :
57+ name : github-pages
58+ url : ${{ steps.deployment.outputs.page_url }}
59+ steps :
60+ - name : Deploy to GitHub Pages
61+ id : deployment
62+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments