Удалить разделение на папки локализации #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Copy files | |
on: | |
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 |