From 060eda3ad95282aabd0f20978785aad6f31aaca6 Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 21 Jun 2026 17:47:32 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20.gitea/workflows/demo.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/demo.yaml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index f5347a5..618fa91 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -1,13 +1,20 @@ -name: Gitea Actions Demo -run-name: ${{ github.actor }} is testing Gitea Actions -on: [push] # Запускать при каждом пуше в репозиторий +name: Deploy Radio1 Site + +on: + push: + branches: [ "main", "master" ] + workflow_dispatch: + jobs: - Explore-Gitea-Actions: - runs-on: ubuntu-latest # Метка, которую должен поддерживать ваш раннер + deploy-site: + runs-on: ubuntu-latest + steps: - - run: echo "🚀 The workflow is successfully filtered!" + # 1. Скачиваем файлы сайта из Git - name: Check out repository code uses: actions/checkout@v4 - - run: echo "💡 The repository has been cloned." - - run: ls -la - - run: echo "✅ Job finished." \ No newline at end of file + + # 2. Магия: заставляем Docker сервера скопировать файлы в папку CasaOS + - name: Copy Files to CasaOS Folder + run: | + docker run --rm -v /DATA/AppData/radio1:/target -v $(pwd):/source alpine cp -r /source/. /target/