File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,19 +32,19 @@ jobs:
3232 working-directory : src
3333 run : dotnet restore
3434
35+ # For <VersionPrefix>1.2.3</VersionPrefix>, adds the suffix: <VersionSuffix>alpha-<run_number></VersionSuffix>
3536 - name : Build (Release)
3637 working-directory : src
3738 run : |
3839 VERSION_SUFFIX="alpha-${{ github.run_number }}"
39- dotnet build --configuration Release --no-restore \
40+ dotnet pack --configuration Release --no-restore \
4041 -p:VersionSuffix="$VERSION_SUFFIX" \
41- -p:ContinuousIntegrationBuild=true
42+ -p:ContinuousIntegrationBuild=true \
43+ -o artifacts
4244
43- # For <Version>1.2.3</Version>, adds the suffix: <VersionSuffix>alpha-<run_number></VersionSuffix>
4445 - name : Pack with alpha suffix
4546 working-directory : src
4647 run : |
47- VERSION_SUFFIX="alpha-${{ github.run_number }}"
4848 dotnet pack --configuration Release --no-build -o artifacts
4949
5050 - name : Push nupkg
5858 --source https://api.nuget.org/v3/index.json \
5959 --skip-duplicate
6060
61- - name : Push nupkg
61+ - name : Push snupkg
6262 working-directory : src
6363 env :
6464 NUGET_API_KEY : ${{ secrets.NUGET_API_KEY }}
Original file line number Diff line number Diff line change 66 <TreatWarningsAsErrors >true</TreatWarningsAsErrors >
77 <Nullable >enable</Nullable >
88 <AnalysisMode >All</AnalysisMode >
9- <Version >1.0.0</Version >
9+ <VersionPrefix >1.0.0</VersionPrefix >
1010 </PropertyGroup >
1111 <PropertyGroup >
1212 <PackageProjectUrl >https://github.com/RiRiSharp/Wader</PackageProjectUrl >
3737 <PackageReference Include =" Microsoft.SourceLink.GitHub" PrivateAssets =" All" />
3838 </ItemGroup >
3939 <ItemGroup >
40- <None Include =" ../../README.md" Pack =" true" PackagePath =" \"
40+ <None
41+ Include =" ../../README.md"
42+ Pack =" true"
43+ PackagePath =" "
44+ Link =" README.md"
4145 Condition =" Exists('../../README.md')" />
4246 <None
4347 Include =" ../../branding/logo.png"
4448 Pack =" true"
45- PackagePath =" \"
49+ PackagePath =" "
50+ Link =" logo.png"
4651 Condition =" Exists('../../branding/logo.png')"
4752 />
4853 </ItemGroup >
You can’t perform that action at this time.
0 commit comments