Compare commits

...

9 Commits

Author SHA1 Message Date
4ce1bd70ce Merge pull request 'main' (#1) from main into beta
All checks were successful
Test Gitea Actions Workflow / react_deploy (push) Successful in 10s
Reviewed-on: #1
2025-11-28 20:14:36 +00:00
a3df231673 indentation_error
All checks were successful
Test Gitea Actions Workflow / react_deploy (push) Successful in 10s
2025-11-28 20:02:28 +00:00
ecdae79f78 script changed to command
All checks were successful
Test Gitea Actions Workflow / react_deploy (push) Successful in 10s
2025-11-28 19:56:26 +00:00
WdiplGit
fd94f083f4 ci-workflow-added-by-devops
Some checks failed
Test Gitea Actions Workflow / react_deploy (push) Failing after 10s
2025-11-28 19:51:17 +00:00
7af0835a1f update gitea ref name for branch name
Some checks failed
Test Gitea Actions Workflow / react_deploy (push) Failing after 10s
2025-11-28 19:39:20 +00:00
WdiplGit
3b40a11407 ci-workflow-added-by-devops
Some checks failed
Test Gitea Actions Workflow / react_deploy (push) Failing after 10s
2025-11-28 19:34:35 +00:00
WdiplGit
946ffe86f1 ci-workflow-added-by-devops
Some checks failed
Test Gitea Actions Workflow / test (push) Failing after 11s
2025-11-28 19:26:44 +00:00
WdiplGit
d7a93a40ab ci-workflow-added-by-devops
Some checks failed
Test Gitea Actions Workflow / test (push) Failing after 9s
2025-11-28 18:28:07 +00:00
WdiplGit
1a5db0e127 ci-workflow-added-by-devops 2025-11-28 18:20:34 +00:00

View File

@@ -0,0 +1,59 @@
name: Test Gitea Actions Workflow
on:
push:
branches:
- main
- beta
- testing
- client
- staging
- production
jobs:
react_deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Execute remote SSH commands using password
uses: appleboy/ssh-action@v1
with:
host: ${{ vars.NODE_SERVER_HOST }}
username: ${{ vars.NODE_SERVER_USER }}
password: ${{ vars.NODE_SERVER_PASSWORD }}
port: ${{ vars.NODE_SERVER_PORT }}
envs: BRANCH_NAME
BRANCH_NAME: ${{ gitea.ref_name }}
command: |
echo "Incoming Branch : $BRANCH_NAME"
case "$BRANCH_NAME" in
beta)
PROJECT_PATH="deployauto"
;;
testing)
PROJECT_PATH="null"
;;
client)
PROJECT_PATH="null"
;;
staging)
PROJECT_PATH="null"
;;
production)
PROJECT_PATH="null"
;;
*)
echo "Unknown branch: $BRANCH_NAME"
exit 1
;;
esac
echo "Selected folder = $PROJECT_PATH"
cd "/home/$PROJECT_PATH/reactautodeploy"
npm i && npm run build