Skip to content
This repository has been archived by the owner on Nov 19, 2023. It is now read-only.

Update README.md

Update README.md #55

name: Deploy on SSH server
on:
# Runs on pushes targeting the default branch
push:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v2
- name: 🪢 Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: '16'
- name: 🔨 Build Project
run: |
npm install
npm run export
# - name: 📖 List output files
# run: find out/ -print
- name: copy file via ssh password
uses: appleboy/scp-action@master
with:
host: ${{ secrets.SSH_SERVER }}
username: ${{ secrets.USER_NAME }}
port: ${{ secrets.SSH_PORT }}
key: ${{ secrets.PRIVATE_KEY }}
passphrase: ${{ secrets.PASSWORD }}
source: "./out/*"
target: "~/www/"
strip_components: 1