dotnet-cnblogs-tool
dotnet-cnblogs-tool copied to clipboard
Github Actions
建议利用 Github Actions 直接发布 Released 版本,毕竟很多人的计算机环境都是没有 .NET 环境的
以下提供一个 Actions,测试可用,记得先配置你的 GITHUB_TOKEN 效果见 https://github.com/sky5454/CnBlogPublishTool/releases
name: .NET Core
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.301
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet publish .\CnBlogPublishTool.sln -c Release -r win10-x86 -o ./Publish
#dotnet build --configuration Release --no-restore
- name: Zip
run: dir .\Publish && Compress-Archive -Path .\Publish dotnet-cnblog.zip
- name: Released
uses: djnicholson/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
asset-name: 'dotnet-cnblog.zip'
file: '.\dotnet-cnblog.zip'
感谢建议,周末我抽个时间弄一下
二进制版本发布了 https://github.com/stulzq/dotnet-cnblogs-tool/releases/latest
二进制版本发布了 https://github.com/stulzq/dotnet-cnblogs-tool/releases/latest
把 Windows 的改成 zip 吧,通用一点