File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ # GitHub Pages ke liye Static Content Deployment Workflow
2+ name : Deploy Static Content to GitHub Pages
3+
4+ on :
5+ push :
6+ branches : ["main"] # Sirf 'main' branch pe push hone pe chalega
7+ workflow_dispatch : # Manually Actions tab se bhi run kar sakte ho
8+
9+ permissions :
10+ contents : read
11+ pages : write
12+ id-token : write
13+
14+ concurrency :
15+ group : " pages"
16+ cancel-in-progress : false # Running deployment ko cancel nahi karega
17+
18+ jobs :
19+ deploy :
20+ environment :
21+ name : github-pages
22+ url : ${{ steps.deployment.outputs.page_url }}
23+ runs-on : ubuntu-latest
24+
25+ steps :
26+ - name : Checkout Repository
27+ uses : actions/checkout@v3 # Repository checkout karega
28+
29+ - name : Setup GitHub Pages
30+ uses : actions/configure-pages@v3 # GitHub Pages setup karega
31+
32+ - name : Upload Build Files
33+ uses : actions/upload-pages-artifact@v2
34+ with :
35+ path : ' .' # Pura repository deploy karega
36+
37+ - name : Deploy to GitHub Pages
38+ id : deployment
39+ uses : actions/deploy-pages@v2
You can’t perform that action at this time.
0 commit comments