Skip to content

更新

更新 #179

Workflow file for this run

name: CI&CD
on:
push:
branches:
- deploy
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: '16.x'
- name: Dependent environment
run: |
npm i
node process.js
- name: Deploy
uses: garygrossgarten/[email protected]
with:
local: docs
remote: /home/ubuntu/www/diandeng.tech/docs
host: ${{ secrets.HOST }}
username: ubuntu
privateKey: ${{ secrets.PRIVATEKEY }}