mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-19 13:30:55 +08:00
feat: ci & cd
This commit is contained in:
12
.github/workflows/deploy-staging.yml
vendored
12
.github/workflows/deploy-staging.yml
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user