try again
This commit is contained in:
parent
8cf77596a1
commit
ea163d55a5
1 changed files with 0 additions and 25 deletions
25
.github/workflows/main.yml
vendored
25
.github/workflows/main.yml
vendored
|
|
@ -10,27 +10,6 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# - name: Checkout code
|
|
||||||
# uses: actions/checkout@v2
|
|
||||||
#
|
|
||||||
# - name: Set up Node.js
|
|
||||||
# uses: actions/setup-node@v2
|
|
||||||
# with:
|
|
||||||
# node-version: '16'
|
|
||||||
#
|
|
||||||
# # - name: Install build tools
|
|
||||||
# # run: sudo apt-get install -y build-essential
|
|
||||||
#
|
|
||||||
# #- name: List node_modules
|
|
||||||
# # run: ls -R node_modules
|
|
||||||
#
|
|
||||||
# - name: Install dependencies
|
|
||||||
# run: npm ci --production=True
|
|
||||||
# # or npm ci
|
|
||||||
#
|
|
||||||
# - name: Build the app
|
|
||||||
# run: npm run build
|
|
||||||
|
|
||||||
- name: Deploy to VPS
|
- name: Deploy to VPS
|
||||||
env:
|
env:
|
||||||
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
|
@ -43,8 +22,4 @@ jobs:
|
||||||
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
|
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
|
||||||
chmod 600 ~/.ssh/id_rsa
|
chmod 600 ~/.ssh/id_rsa
|
||||||
ssh-keyscan -H $VPS_HOST >> ~/.ssh/known_hosts
|
ssh-keyscan -H $VPS_HOST >> ~/.ssh/known_hosts
|
||||||
# rsync -avz $VPS_USER@$VPS_HOST $VPS_PATH
|
|
||||||
# --delete dist/
|
|
||||||
ssh $VPS_USER@$VPS_HOST -p $VPS_PORT "cd $VPS_PATH && touch t.txt"
|
ssh $VPS_USER@$VPS_HOST -p $VPS_PORT "cd $VPS_PATH && touch t.txt"
|
||||||
# && npm install --production"
|
|
||||||
# && pm2 restart all"
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue