公务员报名费多少,缩水随便用,毛线衣款式
github 目前已经推出了自己的 cicd 服务 —— github actions,而且比微软的 azure devops pipelines 对开发者来说更友好,使用起来更好用。
总体看下来感觉是从 azure pipelines 迁移过来的东西,有许多概念和 azure pipelines 是类似的,如果你之前用过 azure pipelines,应该很容易上手
.github/workflows
文件夹下来看一个 github actions 的 dotnet 配置:
name: dotnetcore # workflow name on: [push] # event trigger,什么事件触发 build jobs: build: runs-on: ubuntu-latest # 指定 runner,使用 github 提供的 runner steps: - uses: actions/checkout@v1 # checkout - name: setup .net core # 设置 dotnet core 环境 uses: actions/setup-dotnet@v1 with: dotnet-version: 3.0.100 - name: dotnet info # 输出 dotnet -info,查看 dotnet 版本信息 run: dotnet --info - name: build run: bash build.sh # 在 bash 中运行 build 脚本
github 示例: https://github.com/weihanli/weihanli.common/blob/dev/.github/workflows/dotnetcore.yml
徽章:
sample:
[![github build status]()](https://github.com/weihanli/weihanli.common/actions?query=workflow%3adotnetcore+branch%3adev)
https://github.com/<owner>/<repository>/workflows/<workflow_name>/badge.svg https://github.com/<owner>/<repository>/workflows/<workflow_name>/badge.svg?branch=<branch-name>
总体来说,用起来还可以,但是感觉还是不如 travis-ci 以及 azure pipelines成熟,比如说常用 ci 都支持的 commit message 里包含 [skip ci] 的不触发 build,目前 github action 还是不支持的,不过毕竟是新推出来的产品,相信以后一定会越来越好哒,想尝试的小伙伴们可以实践一下
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
Net Core Web Api项目与在NginX下发布的方法
asp.net core3.1 引用的元包dll版本兼容性问题解决方案
IdentityServer4实现.Net Core API接口权限认证(快速入门)
ASP.NET Core MVC通过IViewLocationExpander扩展视图搜索路径的实现
网友评论