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: workflow_dispatch:
jobs: jobs:
deploy-staging: build-and-deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
environment: Staging environment: Deploy
steps: steps:
- name: Deploy to Staging Server - uses: actions/checkout@v4
- name: Deploy to Server
uses: appleboy/ssh-action@v1.0.3 uses: appleboy/ssh-action@v1.0.3
with: with:
host: ${{ secrets.SSH_HOST }} host: ${{ secrets.SSH_HOST }}
username: root username: root
key: ${{ secrets.SSH_KEY }} key: ${{ secrets.SSH_KEY }}
script: bash /opt/openisle/deploy-staging.sh script: bash /opt/openisle/deploy.sh