Skip to content

Commit

Permalink
👷 add cd
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidZhang73 committed Feb 26, 2022
1 parent f714188 commit 5ed88b4
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Continuous Deployment

on:
push:
branches: [ v2 ]
workflow_dispatch:

jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Install Dependencies
run: npm install
- name: Build
run: npm run build
- name: Deploy with ssh
uses: easingthemes/ssh-deploy@main
env:
SSH_PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
ARGS: "-rltgoDzvO"
SOURCE: "dist/"
REMOTE_HOST: ${{ secrets.HOST }}
REMOTE_USER: ${{ secrets.USER }}
TARGET: ${{ secrets.TARGET }}

0 comments on commit 5ed88b4

Please sign in to comment.