File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy GitHub Pages
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ build-and-deploy :
10+ runs-on : ubuntu-latest
11+
12+ permissions :
13+ contents : read
14+ pages : write
15+ id-token : write
16+
17+ steps :
18+ - name : Checkout repository
19+ uses : actions/checkout@v3
20+ with :
21+ fetch-depth : 0
22+
23+ - name : Setup Node.js
24+ uses : actions/setup-node@v3
25+ with :
26+ node-version : ' 18.x'
27+ cache : ' npm'
28+
29+ - name : Install dependencies
30+ run : |
31+ npm install
32+
33+ - name : Build the project
34+ run : |
35+ npm run build
36+
37+ - name : Upload build artifacts
38+ uses : actions/upload-artifact@v3
39+ with :
40+ name : production-build
41+ path : ./build
42+
43+ - name : Deploy to GitHub Pages
44+ uses : peaceiris/actions-gh-pages@v3
45+ with :
46+ github_token : ${{ secrets.GITHUB_TOKEN }}
47+ publish_dir : ./build
48+ cname : ticketfy.pymmdrza.com # Optional: If you have a custom domain
You can’t perform that action at this time.
0 commit comments