feat: ci & cd

This commit is contained in:
tim
2025-08-16 15:23:54 +08:00
parent 784598a6f0
commit 86633e1f21

View File

@@ -6,14 +6,18 @@ on:
workflow_dispatch:
jobs:
deploy-staging:
build-and-deploy:
runs-on: ubuntu-latest
environment: Staging
environment: Deploy
steps:
- name: Deploy to Staging Server
- uses: actions/checkout@v4
- name: Deploy to Server
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.SSH_HOST }}
username: root
key: ${{ secrets.SSH_KEY }}
script: bash /opt/openisle/deploy-staging.sh
script: bash /opt/openisle/deploy.sh