Update .gitea/workflows/deploy.yml
Deploy Atom Next / deploy (push) Has been cancelled

This commit is contained in:
remco committed 2026-07-11 21:08:57 +02:00
1 parent b0c1f7a34a
commit 4f4044992b
1 file changed
+12 -20
+12 -20
View File
@@ -1,34 +1,26 @@
name: Remote Build and Deploy name: Remote Build and Deploy
on: on:
push: push:
branches: branches:
- main
main,
jobs: jobs:
deploy: deploy:
runs-on: ubuntu-latest runs-on: shell
steps: steps:
- name: Execute Build and Deploy Commands
name: Checkout Repository run: |
uses: actions/checkout@v4,
name: Execute Remote SSH Commands to Build and Deploy
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: ${{ secrets.SSH_PORT }}
script: |
echo "--- Starting Deployment Pipeline ---" echo "--- Starting Deployment Pipeline ---"
# 1. Navigate to your project folder on the VPS # 1. Navigate to your project folder on the VPS
cd /var/www/atom-nexst/ cd /var/www/atom-next/
# 2. Sync the VPS local code with your Gitea repository # 2. Sync the VPS local code with your Gitea repository
git fetch --all git fetch --all
git reset --hard origin/main git reset --hard origin/main
# 3. Build & Restart Commands (Uncomment or adapt to your stack)# Node.js example:# npm install --production# npm run build# pm2 restart my-app
# Docker example:# docker compose down# docker compose up -d --build # 3. Build & Restart Commands (Uncomment or adapt to your stack if needed)
# npm install --production
# npm run build
echo "--- Deployment Completed Successfully ---" echo "--- Deployment Completed Successfully ---"