remove test env
This commit is contained in:
38
.github/workflows/deploy.yml
vendored
38
.github/workflows/deploy.yml
vendored
@@ -6,7 +6,7 @@ on:
|
|||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy-for-prod:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -27,23 +27,23 @@ jobs:
|
|||||||
REMOTE_USER: root
|
REMOTE_USER: root
|
||||||
TARGET: /root/OJDeploy/data/clientnext
|
TARGET: /root/OJDeploy/data/clientnext
|
||||||
|
|
||||||
deploy-for-test:
|
# deploy-for-test:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v4
|
# - uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: actions/setup-node@v4
|
# - uses: actions/setup-node@v4
|
||||||
with:
|
# with:
|
||||||
node-version: 22
|
# node-version: 22
|
||||||
cache: npm
|
# cache: npm
|
||||||
- run: npm install
|
# - run: npm install
|
||||||
- run: CI=false NODE_ENV=development npm run build
|
# - run: CI=false NODE_ENV=development npm run build
|
||||||
|
|
||||||
- uses: easingthemes/ssh-deploy@main
|
# - uses: easingthemes/ssh-deploy@main
|
||||||
with:
|
# with:
|
||||||
SSH_PRIVATE_KEY: ${{ secrets.KEY }}
|
# SSH_PRIVATE_KEY: ${{ secrets.KEY }}
|
||||||
REMOTE_HOST: ${{ secrets.HOST }}
|
# REMOTE_HOST: ${{ secrets.HOST }}
|
||||||
ARGS: "-avzr --delete"
|
# ARGS: "-avzr --delete"
|
||||||
SOURCE: dist/
|
# SOURCE: dist/
|
||||||
REMOTE_USER: root
|
# REMOTE_USER: root
|
||||||
TARGET: /root/ojtest/data/clientnext
|
# TARGET: /root/ojtest/data/clientnext
|
||||||
|
|||||||
Reference in New Issue
Block a user