name:Continuous Deploy #action名称on:[push] #在推送的时候运行此actionjobs:deploy_job:runs-on:ubuntu-latest #运行环境name:buildsteps:# check out the repository-name:Checkoutuses:actions/checkout@v2 #这里使用了github官方提供的action,checkout项目到虚拟机上-name:Install Dependenciesrun:yarn-name:Build...
Spring Cloud基础之Intelligent Routing智能路由 Spring Cloud基础之Config Server配置中心简单搭建 Spring Cloud基础之Load Balancing负载均衡 Spring Cloud基础之Hystrix熔断器
{ env.AZURE_WEBAPP_PACKAGE_PATH }}/myapp' # Deploy to Azure Web apps - name: 'Run Azure webapp deploy action using publish profile credentials' uses: azure/webapps-deploy@v3 with: app-name: ${{ env.AZURE_WEBAPP_NAME }} # Replace with your app name package: '${{ env.AZURE_WEBAPP_...
# action.yml 配置文件name:'SSH Auto Deploy'# 名称description:'ssh auto deploy'# 描述author:'hengkx'# 作者branding:icon:'crosshair'# 使用的是Feather的图标color:'gray-dark'# 图标颜色inputs:# 输入参数HOST:# 服务器地址description:'remote host'# 参数描述required:true# 是否必填USERNAME:# 用户名d...
- name: Restart server # 第五步,重启服务 uses: appleboy/ssh-action@master with: host: ${{ secrets.SSH_HOST }} # 下面三个配置与上一步类似 username: ${{ secrets.SSH_USERNAME }} key: ${{ secrets.DEPLOY_KEY }} # 重启的脚本,根据自身情况做相应改动,一般要做的是migrate数据库以及重启服务...
{secrets.GITHUB_TO_SERVER_KEY}}ARGS:"-rltgoDzvO --delete"SOURCE:"public/"REMOTE_HOST:${{secrets.SERVER_IP}}REMOTE_PORT:${{secrets.SERVER_PORT}}REMOTE_USER:${{secrets.SERVER_USER}}TARGET:${{secrets.REMOTE_TARGET}}-name:Deploygh-pagesenv:ACTION_DEPLOY_KEY:${{secrets.HEXO_DEPLOY_KEY}}...
name: Deployment concurrency: production on: push: branches: - main jobs: deployment: runs-on: ubuntu-latest environment: production steps: - name: deploy # ...deployment-specific steps You can also specify concurrency at the job level. This will allow other jobs in the workflow ...
yarn run build-name:FTPDeployuses:SamKirkland/FTP-Deploy-Action@4.0.0with:server:${{secrets.ftp_server}}username:${{secrets.ftp_user}}password:${{secrets.ftp_pwd}}local-dir:./build/server-dir:./ 相信第一个实例中的 workflow 应该已经明白了,其中 ftp_server,ftp_user,ftp_pwd 都是私密信息,...
GitHub Actions is a continuous integration and continuous delivery (CI/CD) platform that allows you to automate your build, test, and deployment pipeline. You can create workflows that build and test every pull request to your repository, or deploy merged pull requests to production. ...
And the last step in our workflow is to deploy and provision the VM: - name: provision virtual machine in azure env: RESOURCE_GROUP: rg-githubitpro RESOURCE_GROUP_REGION: southcentralus SERVER_NAME: gihtubactions ADMIN_LOGIN: sarah