Add GitHub Actions workflow for deployment
This commit is contained in:
parent
9832f09c61
commit
e962e837f9
29
.gitea/workflows/deploy.yml
Normal file
29
.gitea/workflows/deploy.yml
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
name: Deploy to site
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
site:
|
||||||
|
description: 'Выберите сайт для деплоя'
|
||||||
|
required: true
|
||||||
|
type: choice
|
||||||
|
options:
|
||||||
|
- schelkovo.dekart.school
|
||||||
|
- balashiha.dekart.school
|
||||||
|
- korolev.dekart.school
|
||||||
|
- mytishchi.dekart.school
|
||||||
|
- pushkino.dekart.school
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Deploy to ${{ inputs.site }}
|
||||||
|
run: |
|
||||||
|
echo "🚀 Deploying to ${{ inputs.site }}..."
|
||||||
|
echo "TODO: SSH connection and deploy.sh execution"
|
||||||
|
echo "✅ Deploy completed!"
|
||||||
Loading…
Reference in New Issue
Block a user