|
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 |
3 | 3 |
|
4 | 4 | on: |
5 | | - # Runs on pushes targeting the default branch |
6 | 5 | 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 |
8 | 8 |
|
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 |
13 | 9 | permissions: |
14 | 10 | contents: read |
15 | 11 | pages: write |
16 | 12 | id-token: write |
17 | 13 |
|
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. |
20 | 14 | concurrency: |
21 | 15 | group: "pages" |
22 | | - cancel-in-progress: false |
| 16 | + cancel-in-progress: false # Running deployment ko cancel nahi karega |
23 | 17 |
|
24 | 18 | jobs: |
25 | | - # Single deploy job since we're just deploying |
26 | 19 | deploy: |
27 | 20 | environment: |
28 | 21 | name: github-pages |
29 | 22 | url: ${{ steps.deployment.outputs.page_url }} |
30 | 23 | runs-on: ubuntu-latest |
| 24 | + |
31 | 25 | 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 |
37 | 33 | uses: actions/upload-pages-artifact@v2 |
38 | 34 | with: |
39 | | - # Upload entire repository |
40 | | - path: '.' |
| 35 | + path: '.' # Pura repository deploy karega |
| 36 | + |
41 | 37 | - name: Deploy to GitHub Pages |
42 | 38 | id: deployment |
43 | 39 | uses: actions/deploy-pages@v2 |
0 commit comments