Merge pull request #769 from ShevArtV/sendit-v-1-2-5 #367
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: Deploy | |
on: | |
workflow_dispatch: {} | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
if: github.repository_owner == 'modx-pro' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: npm | |
- run: npm install --frozen-lockfile | |
- name: Build | |
run: npm run build | |
env: | |
NODE_OPTIONS: "--max_old_space_size=4096" | |
- uses: easingthemes/ssh-deploy@main | |
env: | |
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} | |
ARGS: '--archive --compress --delete --exclude="/redirect.php"' | |
SOURCE: ".vitepress/dist/" | |
REMOTE_HOST: ${{ secrets.REMOTE_HOST }} | |
REMOTE_USER: ${{ secrets.REMOTE_USER }} | |
TARGET: ${{ secrets.REMOTE_TARGET }} |