Prvi commit: WordPress tema Europe Wonder s CI/CD konfiguracijo

This commit is contained in:
Mark Poljanšek committed 2025-05-18 10:26:22 +02:00
commit 135cc3b4c6
438 files changed
+56454

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
name: Deploy to Test Environment
on:
push:
branches:
- develop
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Deploy to test environment
run: |
# Ustvari ciljni direktorij, če ne obstaja
mkdir -p /home/spletnimojster-europewonder/htdocs/europewonder.spletnimojster.si/wp-content/themes/Arhiv
# Kopiraj vse datoteke iz repozitorija v ciljni direktorij
# Uporabi rsync za ohranitev datotek, ki niso v repozitoriju
rsync -av --delete \
--exclude='.git' \
--exclude='.gitea' \
--exclude='.github' \
--exclude='README.md' \
./ /home/spletnimojster-europewonder/htdocs/europewonder.spletnimojster.si/wp-content/themes/Arhiv/
echo "Theme deployed to test environment successfully!"