Files
CS-Box/.gitea/workflows/publish.yaml
Alexander Lyall 9087109efb
Some checks failed
Publish to Server / Deploy (push) Failing after 7s
Update .gitea/workflows/publish.yaml
2025-11-08 18:54:30 +00:00

26 lines
704 B
YAML

name: Publish to Server
run-name: ${{ gitea.actor }} is publishing your site using Gitea Actions 🚀
on:
workflow_dispatch:
# Trigger the workflow on push
push:
branches: [main]
# Authenticate to the the server via ssh
# and run our deployment script (sftp upload)
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Copy files via SSH
uses: appleboy/scp-action@v1
with:
host: ${{ vars.SSH_HOST }}
username: ${{ vars.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.PORT }}
source: ${{ vars.GIT_FOLDER }}
target: ${{ vars.SSH_FOLDER }}