Fix nuget packaging.
This commit is contained in:
parent
753cc919a2
commit
5613a2df48
4
.github/workflows/nuget.yml
vendored
4
.github/workflows/nuget.yml
vendored
@ -36,6 +36,6 @@ jobs:
|
|||||||
|
|
||||||
- name: NuGet Pack
|
- name: NuGet Pack
|
||||||
run: |
|
run: |
|
||||||
cp readme.rst readme.md
|
cp readme.rst readme.md
|
||||||
cp license.rst readme.md
|
cp license.rst license.md
|
||||||
nuget pack bundle\nuget\fmt.nuspec -properties Id=wuganhao.fmt -version 1.0-dev -basepath . -OutputFileNamesWithoutVersion
|
nuget pack bundle\nuget\fmt.nuspec -properties Id=wuganhao.fmt -version 1.0-dev -basepath . -OutputFileNamesWithoutVersion
|
||||||
4
.github/workflows/tag.yml
vendored
4
.github/workflows/tag.yml
vendored
@ -36,8 +36,8 @@ jobs:
|
|||||||
|
|
||||||
- name: NuGet Pack
|
- name: NuGet Pack
|
||||||
run: |
|
run: |
|
||||||
cp readme.rst readme.md
|
cp readme.rst readme.md
|
||||||
cp license.rst readme.md
|
cp license.rst license.md
|
||||||
$Tag = "${{ github.ref }}" -replace '(refs/tags/)(.+)', '$2'
|
$Tag = "${{ github.ref }}" -replace '(refs/tags/)(.+)', '$2'
|
||||||
$Version = $Tag -replace '((\d+)(\.\d+){1,3})(-.+|)', '$1'
|
$Version = $Tag -replace '((\d+)(\.\d+){1,3})(-.+|)', '$1'
|
||||||
$InformationalVersion = "$Tag SHA-${{ github.SHA }}"
|
$InformationalVersion = "$Tag SHA-${{ github.SHA }}"
|
||||||
|
|||||||
@ -24,7 +24,7 @@
|
|||||||
<file src="build\bin\Release\fmt.dll" target="lib\native\x64\debug\" />
|
<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.props" target="build\$Id$.props" />
|
||||||
<file src="bundle\nuget\fmt.targets" target="build\$Id$.targets" />
|
<file src="bundle\nuget\fmt.targets" target="build\$Id$.targets" />
|
||||||
<file src="LICENSE.md" target="docs\" />
|
<file src="license.md" target="docs\" />
|
||||||
<file src="README.md" target="docs\" />
|
<file src="readme.md" target="docs\" />
|
||||||
</files>
|
</files>
|
||||||
</package>
|
</package>
|
||||||
Loading…
Reference in New Issue
Block a user