Skip to content

Commit

Permalink
Create static.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MasoodGhauri authored Apr 26, 2024
1 parent cbf8ace commit 3700a0a
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Notes_CI-CD_SCD_A2_Docs_Deploy

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Create deployment directory
run: mkdir -p ${{ github.workspace }}/docs/

- name: Copy README.md to deployment directory
run: cp README.md ${{ github.workspace }}/docs/

- name: Commit and push changes
run: |
cd ${{ github.workspace }}/docs/
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add README.md
git commit -m "Deploy README.md to GitHub Pages"
git push origin main

0 comments on commit 3700a0a

Please sign in to comment.