-
Notifications
You must be signed in to change notification settings - Fork 2
30 lines (27 loc) · 958 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: princetonpy.org main copy
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
copy-to-server:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run a one-line script
run: echo Hello from Octo Organization
- name: rsync deployment
# You may pin to the exact commit or the version.
# uses: Burnett01/rsync-deployments@45d84ad5f6c174f3e0ffc50e9060a9666d09c16e
uses: Burnett01/[email protected]
with:
switches: -avzr --delete
# path: src/
# remote_path is the path under which "path" is checked out
# default is repo root - top-level files/dirs
remote_path: ${{ secrets.MAIN_PATH }}
remote_host: ${{ secrets.DEPLOY_HOST }}
remote_port: ${{ secrets.DEPLOY_PORT }}
remote_user: ${{ secrets.DEPLOY_USER }}
remote_key: ${{ secrets.CI_PRIVATE_KEY }}