Skip to content

Commit 0e43d60

Browse files
committed
fix: Fix broken release / Manually craft release notes
1 parent 6fe30f2 commit 0e43d60

File tree

7 files changed

+40
-9
lines changed

7 files changed

+40
-9
lines changed

.github/workflows/main.yml

-3
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,5 @@ jobs:
1515
fetch-tags: true
1616
submodules: true
1717
ssh-key: ${{ secrets.ACCESS_KEY }}
18-
- name: Release Notes
19-
run: |
20-
git log --pretty=format:'%d %s' ${GITHUB_REF} | perl -pe 's| \(.*tag: (\d+.\d+.\d+(-preview\d{3})?)(, .*?)*\)|\n## \1\n|g' > RELEASE_NOTES.md
2118
- name: Build
2219
run: ./build.sh --target Publish --publish --source GitHUb --feed ${{ vars.ISE_NUGET_FEED }} --username ${{ vars.ISE_NUGET_USERNAME }} --token ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

-4
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,8 @@ jobs:
1616
uses: actions/[email protected]
1717
with:
1818
fetch-depth: 999
19-
fetch-tags: true
2019
submodules: true
2120
ssh-key: ${{ secrets.ACCESS_KEY }}
22-
- name: Release Notes
23-
run: |
24-
git log --pretty=format:'%d %s' ${GITHUB_REF} | perl -pe 's| \(.*tag: (\d+.\d+.\d+(-preview\d{3})?)(, .*?)*\)|\n## \1\n|g' > RELEASE_NOTES.md
2521
- name: Build
2622
run: ./build.sh --target Publish --publish --nuget --token ${{ secrets.PUBLIC_NUGET_APIKEY }}
2723
release:

CHANGELOG.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+
7+
## 0.2.0
8+
9+
- Added support for Issuu API v2's /publication/ operations
10+
11+
## 0.1.0
12+
13+
### Added
14+
15+
- Support for Issuu API v2's /draft/ operations

Directory.Build.props

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
<ImplicitPackageReferences Condition="'$(ImplicitPackageReferences)'==''">true</ImplicitPackageReferences>
55

66
<!-- RELEASE_NOTES is generated by the build using commit history -->
7-
<PackageDescription>$([System.IO.File]::ReadAllText("$(MSBuildThisFileDirectory)RELEASE_NOTES.md"))</PackageDescription>
7+
<PackageDescription>$([System.IO.File]::ReadAllText("$(MSBuildThisFileDirectory)CHANGELOG.md"))</PackageDescription>
88

99
<!-- Include the GIT URL in the published output, and include untracked source files -->
10+
<RepositoryUrl>https://github.com/IngeniumSE/IssuuSDK</RepositoryUrl>
11+
<RepositoryType>git</RepositoryType>
1012
<PublishReposityUrl>true</PublishReposityUrl>
1113
<EmbedUntractSources>true</EmbedUntractSources>
1214
</PropertyGroup>

IssuuSDK.sln

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "repo", "repo", "{1217150D-D
99
.gitignore = .gitignore
1010
build.cmd = build.cmd
1111
build.sh = build.sh
12+
CHANGELOG.md = CHANGELOG.md
1213
Directory.Build.props = Directory.Build.props
1314
Directory.Build.targets = Directory.Build.targets
1415
Directory.Packages.props = Directory.Packages.props
1516
LICENSE = LICENSE
1617
NuGet.config = NuGet.config
1718
README.md = README.md
18-
RELEASE_NOTES.md = RELEASE_NOTES.md
1919
EndProjectSection
2020
EndProject
2121
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{58023753-CB7E-471D-A8EF-103389504D8B}"

RELEASE_NOTES.md

Whitespace-only changes.

libs/IssuuSDK/IssuuSDK.csproj

+21
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,20 @@
77
<Nullable>enable</Nullable>
88
<RootNamespace>IssuuSDK</RootNamespace>
99
<ImplicitPackageReferences>false</ImplicitPackageReferences>
10+
<Title>IssuuSDK</Title>
11+
<Authors>IngeniumSoftwareDev</Authors>
12+
<Company>Ingenium Software Development</Company>
13+
<PackageReadmeFile>README.md</PackageReadmeFile>
14+
<PackageProjectUrl>https://github.com/IngeniumSE/IssuuSDK</PackageProjectUrl>
1015
</PropertyGroup>
1116

17+
<ItemGroup>
18+
<None Include="..\..\README.md">
19+
<Pack>True</Pack>
20+
<PackagePath>\</PackagePath>
21+
</None>
22+
</ItemGroup>
23+
1224
<ItemGroup>
1325
<PackageReference Include="Ben.Demystifier" />
1426
<PackageReference Include="FluentValidation" />
@@ -39,4 +51,13 @@
3951
</EmbeddedResource>
4052
</ItemGroup>
4153

54+
<Target Name="PreparePackageReleaseNotesFromFile" BeforeTargets="GenerateNuspec">
55+
<ReadLinesFromFile File="../../CHANGELOG.md">
56+
<Output TaskParameter="Lines" ItemName="ReleaseNoteLines" />
57+
</ReadLinesFromFile>
58+
<PropertyGroup>
59+
<PackageReleaseNotes>@(ReleaseNoteLines, '%0a')</PackageReleaseNotes>
60+
</PropertyGroup>
61+
</Target>
62+
4263
</Project>

0 commit comments

Comments
 (0)