Skip to content

Commit 22683fc

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

File tree

1 file changed

+15
-19
lines changed

1 file changed

+15
-19
lines changed

.github/workflows/static.yml

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

44
on:
5-
# Runs on pushes targeting the default branch
65
push:
7-
branches: ["main"]
6+
branches: ["main"] # Sirf 'main' branch pe push hone pe chalega
7+
workflow_dispatch: # Manually Actions tab se bhi run kar sakte ho
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
139
permissions:
1410
contents: read
1511
pages: write
1612
id-token: write
1713

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.
2014
concurrency:
2115
group: "pages"
22-
cancel-in-progress: false
16+
cancel-in-progress: false # Running deployment ko cancel nahi karega
2317

2418
jobs:
25-
# Single deploy job since we're just deploying
2619
deploy:
2720
environment:
2821
name: github-pages
2922
url: ${{ steps.deployment.outputs.page_url }}
3023
runs-on: ubuntu-latest
24+
3125
steps:
32-
- name: Checkout
33-
uses: actions/checkout@v3
34-
- name: Setup Pages
35-
uses: actions/configure-pages@v3
36-
- name: Upload artifact
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
3733
uses: actions/upload-pages-artifact@v2
3834
with:
39-
# Upload entire repository
40-
path: '.'
35+
path: '.' # Pura repository deploy karega
36+
4137
- name: Deploy to GitHub Pages
4238
id: deployment
4339
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)