Skip to content

#4 更新内容太多时没有自动换行 #24

#4 更新内容太多时没有自动换行

#4 更新内容太多时没有自动换行 #24

Workflow file for this run

name: Release
on:
push:
tags:
- "v*.*.*"
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Nuget
uses: NuGet/[email protected]
- name: Restore nuget packages
run: nuget restore .\src\JiuLing.AutoUpgrade.sln
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Build core app
run: msbuild .\src\JiuLing.AutoUpgrade\JiuLing.AutoUpgrade.csproj /P:Configuration=Release
- name: Setup .NET 8
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore .\src\JiuLing.AutoUpgrade.sln
- name: Build shell app
run: dotnet build .\src\JiuLing.AutoUpgrade.Shell\JiuLing.AutoUpgrade.Shell.csproj --no-restore -c release
- name: Get version
uses: olegtarasov/[email protected]
id: tagName
- name: Create zip
shell: pwsh
# 配置【编译后的文件地址】
run: Compress-Archive -Path ${{github.workspace}}\src\JiuLing.AutoUpgrade.Shell\bin\Release\* -DestinationPath ${{github.workspace}}\src\JiuLing.AutoUpgrade.Shell\bin\Release\JiuLing.AutoUpgrade.Shell_${{ steps.tagName.outputs.tag }}.zip
- name: Release
uses: softprops/[email protected]
if: startsWith(github.ref, 'refs/tags/')
with:
# 配置【README地址】
body: |
Release为自动生成,具体内容请查看提交日志,或直接查看[README](https://github.com/JiuLing-zhang/JiuLing.AutoUpgrade#readme)
# 配置【zip文件地址】
files: ${{github.workspace}}\src\JiuLing.AutoUpgrade.Shell\bin\Release\JiuLing.AutoUpgrade.Shell_${{ steps.tagName.outputs.tag }}.zip
#配置发布NuGet
- name: Publish
uses: brandedoutcast/[email protected]
with:
PROJECT_FILE_PATH: src/JiuLing.AutoUpgrade.Shell/JiuLing.AutoUpgrade.Shell.csproj
PACKAGE_NAME: JiuLing.AutoUpgrade
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
TAG_COMMIT: false