Skip to content

fix huix

fix huix #17

Workflow file for this run

name: Copy files
on:
pull_request
# push:
# branches:
# - main
# workflow_dispatch:
jobs:
copy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Transfer files in repository to Remote Server via SCP
uses: pierrickdelrieu/[email protected]
with:
host: ${{ secrets.SERVER_HOST }}
ssh_port: ${{ secrets.DESTINATION_SSH_PORT }}
ssh_username: ${{ secrets.SERVER_USER }}
source_dir: ${{ secrets.SOURCE_FOLDER }}
ssh_key: ${{ secrets.SSH_PRIVATE_KEY }}
destination_dir: ${{ secrets.DESTINATION_FOLDER }}
rm: true
- name: executing remote ssh commands
uses: appleboy/[email protected]
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: ${{ secrets.DESTINATION_SSH_PORT }}
script: |
export NVM_DIR=~/.nvm
source ~/.nvm/nvm.sh
cd asya-docs/asya-docs && npm run build