clone:legacy
This commit is contained in:
36
deploy.yml
Normal file
36
deploy.yml
Normal file
@@ -0,0 +1,36 @@
|
||||
name: BKON API Server Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ['main']
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '20'
|
||||
- name: Install and build
|
||||
run: |
|
||||
npm install
|
||||
yarn build
|
||||
|
||||
# deploy:
|
||||
# needs: [build]
|
||||
# runs-on: ubuntu-latest
|
||||
|
||||
# steps:
|
||||
# - name: Build and deploy
|
||||
# run: |
|
||||
# echo "$SSH_PEM_KEY" >> $HOME/key.pem
|
||||
# chmod 400 $HOME/key.pem
|
||||
# ssh -i $HOME/key.pem -o StrictHostKeyChecking=no ${SSH_USER}@${SSH_KNOWN_HOSTS} '~/script.sh'
|
||||
# env:
|
||||
# SSH_USER: ${{secrets.SSH_USER}}
|
||||
# SSH_KNOWN_HOSTS: ${{secrets.SSH_KNOWN_HOSTS}}
|
||||
# SSH_PEM_KEY: ${{secrets.SSH_PEM_KEY}}
|
||||
Reference in New Issue
Block a user