Files
radio1/.gitea/workflows/demo.yaml
admin f3747b4925
Some checks failed
Deploy Radio1 Site via Git / deploy (push) Failing after 2s
Deploy Radio1 Site / deploy-site (push) Successful in 5s
Обновить .gitea/workflows/demo.yaml
2026-06-21 18:42:56 +00:00

36 lines
1.3 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: Deploy Radio1 Site
on:
push:
branches: [ "main", "master" ]
workflow_dispatch:
jobs:
deploy-site:
runs-on: ubuntu-latest
steps:
# 1. Скачиваем файлы сайта из Git
- name: Check out repository code
uses: actions/checkout@v4
# 2. Создаем целевую папку в CasaOS, если её еще нет
- name: Create CasaOS Folder if not exists
run: |
mkdir -p /DATA/AppData/radio1
# 3. Копируем файлы сайта в созданную папку
- name: Copy Files to CasaOS Folder
run: |
docker run --rm -v /DATA/AppData/radio1:/target -v $(pwd):/source alpine cp -r /source/. /target/
# 4. Выводим информацию об успешном завершении
- name: Show Deployment Info
run: |
echo "=========================================================="
echo "Развертывание Radio1 успешно завершено!"
echo "Файлы скопированы в: /DATA/AppData/radio1"
echo "Предполагаемый адрес контейнера: ${{ gitea.server_url }}/${{ gitea.repository }}:latest"
echo "=========================================================="