Files
docs/.gitea/workflows/gitops-automatic-deployment.yml
Nicole Rappe 3dabc1495c
Some checks failed
GitOps Automatic Deployment / GitOps Automatic Deployment (push) Failing after 2s
Update .gitea/workflows/gitops-automatic-deployment.yml
2025-05-16 17:20:25 -06:00

34 lines
841 B
YAML

name: GitOps Automatic Deployment
on:
push:
branches: [ main ]
jobs:
GitOps Automatic Deployment:
runs-on: gitea-runner-mkdocs
steps:
- name: Install Node.js, git, and rsync
run: |
apt-get update
apt-get install -y nodejs npm git rsync
- name: Checkout Repository
uses: actions/checkout@v3
- name: Copy Repository Data to Production Server
run: |
echo "PWD:"
pwd
echo "Contents of current directory:"
ls -lah
echo "Contents of /Gitops_Destination before rsync:"
ls -lah /Gitops_Destination
echo "Running rsync..."
rsync -avvi --delete --exclude='.git/' . /Gitops_Destination/
echo "Contents of /Gitops_Destination after rsync:"
ls -lah /Gitops_Destination