build vue/react/gulp and deploy your project over ssh|rsync|ftp to you server
get a deploy-token by https://tools.focusbe.com/deploy-token
uses: focusbe/deploy-action@v1
with:
deploy-token: ${{DEPLOY_TOKEN}}
requied you can use ssh|rsync|ftp. Default "rsync"
.
optional you can use front-static|front-build|backend-php|backend-node。 Default github reposity name.
requied you can use front-static|front-build|backend-php|backend-node。 Default "front-build"
.
requied you server ip.
requied you server username.
optional you server password.
optional the path of you project on your server.
optional when you deploy-type is "ssh"
|"ftp"
,you need input port.Default 22
.
uses: focusbe/deploy@v1
with:
deploy-type: ftp,
project-type: front-static,
ip: **.**.**.**,
port: 21,
username: ${{Username}},
password: ${{Password}},
remote-path: /var/www/html
Do not input password or token in .yml file,you can save it in github->project->setting->secrets,and use it by ${{secrets.SomeThing}}