Skip to content

Commit a84114c

Browse files
committed
Fixes
1 parent a593dda commit a84114c

4 files changed

Lines changed: 18 additions & 13 deletions

File tree

.github/workflows/publish-alpha.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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
@@ -58,7 +58,7 @@ jobs:
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 }}

branding/logo.png

Lines changed: 2 additions & 2 deletions
Loading

branding/logo.svg

Lines changed: 3 additions & 3 deletions
Loading

src/Directory.Build.props

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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>
@@ -37,12 +37,17 @@
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>

0 commit comments

Comments
 (0)