Skip to content

Commit f5a4137

Browse files
authored
Update static.yml
1 parent 22683fc commit f5a4137

File tree

1 file changed

+19
-15
lines changed

1 file changed

+19
-15
lines changed

.github/workflows/static.yml

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,43 @@
1-
# GitHub Pages ke liye Static Content Deployment Workflow
2-
name: Deploy Static Content to GitHub Pages
1+
# Simple workflow for deploying static content to GitHub Pages
2+
name: Deploy static content to Pages
33

44
on:
5+
# Runs on pushes targeting the default branch
56
push:
6-
branches: ["main"] # Sirf 'main' branch pe push hone pe chalega
7-
workflow_dispatch: # Manually Actions tab se bhi run kar sakte ho
7+
branches: ["main"]
88

9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
913
permissions:
1014
contents: read
1115
pages: write
1216
id-token: write
1317

18+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
1420
concurrency:
1521
group: "pages"
16-
cancel-in-progress: false # Running deployment ko cancel nahi karega
22+
cancel-in-progress: false
1723

1824
jobs:
25+
# Single deploy job since we're just deploying
1926
deploy:
2027
environment:
2128
name: github-pages
2229
url: ${{ steps.deployment.outputs.page_url }}
2330
runs-on: ubuntu-latest
24-
2531
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
32+
- name: Checkout
33+
uses: actions/checkout@v3
34+
- name: Setup Pages
35+
uses: actions/configure-pages@v3
36+
- name: Upload artifact
3337
uses: actions/upload-pages-artifact@v2
3438
with:
35-
path: '.' # Pura repository deploy karega
36-
39+
# Upload entire repository
40+
path: '.'
3741
- name: Deploy to GitHub Pages
3842
id: deployment
3943
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)