File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # This is a basic workflow to help you get started with Actions
2+
3+ name : Deploy Docs to Server
4+
5+ # Controls when the workflow will run
6+ on :
7+ # Triggers the workflow on push or pull request events but only for the "master" branch
8+ push :
9+ branches : [ "deploy" ]
10+
11+ # Allows you to run this workflow manually from the Actions tab
12+ workflow_dispatch :
13+
14+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
15+ jobs :
16+ # This workflow contains a single job called "build"
17+ ssh-deploy :
18+ # The type of runner that the job will run on
19+ runs-on : ubuntu-latest
20+
21+ # Steps represent a sequence of tasks that will be executed as part of the job
22+ steps :
23+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
24+ - uses : actions/checkout@v3
25+
26+ - name : ssh deploy
27+ uses : easingthemes/ssh-deploy@v2.2.11
28+ env :
29+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
30+ with :
31+ SSH_PRIVATE_KEY : ${{ secrets.SSH_KEY }}
32+ REMOTE_HOST : dataease.io
33+ REMOTE_USER : root
34+ SOURCE : ./
35+ TARGET : /opt/sqlbot/docs
36+ # Arguments to pass to rsync
37+ ARGS : " -rltgoDzvO --delete"
38+ # An array of folder to exclude
39+ EXCLUDE : " .git/"
You can’t perform that action at this time.
0 commit comments