Skip to content

Commit 05e9bcb

Browse files
committed
Create deploy.yml
1 parent d74a850 commit 05e9bcb

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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

0 commit comments

Comments
 (0)