This commit is contained in:
1 parent
4f4044992b
commit
db2e8d80c3
1 file changed
+1
-10
@@ -6,21 +6,12 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: shell
|
runs-on: host
|
||||||
steps:
|
steps:
|
||||||
- name: Execute Build and Deploy Commands
|
- name: Execute Build and Deploy Commands
|
||||||
run: |
|
run: |
|
||||||
echo "--- Starting Deployment Pipeline ---"
|
echo "--- Starting Deployment Pipeline ---"
|
||||||
|
|
||||||
# 1. Navigate to your project folder on the VPS
|
|
||||||
cd /var/www/atom-next/
|
cd /var/www/atom-next/
|
||||||
|
|
||||||
# 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 if needed)
|
|
||||||
# npm install --production
|
|
||||||
# npm run build
|
|
||||||
|
|
||||||
echo "--- Deployment Completed Successfully ---"
|
echo "--- Deployment Completed Successfully ---"
|
||||||
Reference in new issue
Block a user