Fix nuget packaging.

This commit is contained in:
Wu, Ganhao 2021-12-23 18:33:33 +08:00
parent 753cc919a2
commit 5613a2df48
3 changed files with 6 additions and 6 deletions

View File

@ -36,6 +36,6 @@ jobs:
- name: NuGet Pack
run: |
cp readme.rst readme.md
cp license.rst readme.md
cp readme.rst readme.md
cp license.rst license.md
nuget pack bundle\nuget\fmt.nuspec -properties Id=wuganhao.fmt -version 1.0-dev -basepath . -OutputFileNamesWithoutVersion

View File

@ -36,8 +36,8 @@ jobs:
- name: NuGet Pack
run: |
cp readme.rst readme.md
cp license.rst readme.md
cp readme.rst readme.md
cp license.rst license.md
$Tag = "${{ github.ref }}" -replace '(refs/tags/)(.+)', '$2'
$Version = $Tag -replace '((\d+)(\.\d+){1,3})(-.+|)', '$1'
$InformationalVersion = "$Tag SHA-${{ github.SHA }}"

View File

@ -24,7 +24,7 @@
<file src="build\bin\Release\fmt.dll" target="lib\native\x64\debug\" />
<file src="bundle\nuget\fmt.props" target="build\$Id$.props" />
<file src="bundle\nuget\fmt.targets" target="build\$Id$.targets" />
<file src="LICENSE.md" target="docs\" />
<file src="README.md" target="docs\" />
<file src="license.md" target="docs\" />
<file src="readme.md" target="docs\" />
</files>
</package>