Skip to content

Merge pull request #784 from astra-modx/master #387

Merge pull request #784 from astra-modx/master

Merge pull request #784 from astra-modx/master #387

Workflow file for this run

name: Deploy
on:
workflow_dispatch: {}
push:
branches:
- master
jobs:
deploy:
if: github.repository_owner == 'modx-pro'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: bun install --frozen-lockfile
- name: Build
run: bun run build
- 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 }}