Skip to content

Commit

Permalink
Fix release:
Browse files Browse the repository at this point in the history
- CI: Remove obsolete version parameter
- Enable continuous integration builds if run on CI server
- Add Microsoft.SourceLink.GitHub
  • Loading branch information
badcel committed Dec 4, 2022
1 parent 21d3572 commit 3347479
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:

- name: Pack release version
if: ${{ github.event.inputs.publish == 'true' && github.event.inputs.preview == 'false' && matrix.os == 'ubuntu-latest' }}
run: dotnet pack --no-build --nologo -c ${{ env.configuration }} /p:Version=${{ github.event.release.tag_name }} -o ../Nuget
run: dotnet pack --no-build --nologo -c ${{ env.configuration }} -o ../Nuget
working-directory: './src'

- name: Publish to nuget org
Expand Down
12 changes: 11 additions & 1 deletion src/GirCore.Publishing.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,28 @@
<owners>badcel</owners>

<PackageProjectUrl>https://github.com/gircore/gir.core</PackageProjectUrl>
<RepositoryUrl>https://github.com/gircore/gir.core.git</RepositoryUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<EmbedUntrackedSources>true</EmbedUntrackedSources>

<VersionPrefix>0.1.0</VersionPrefix>
<PackageReadmeFile>NugetReadme.md</PackageReadmeFile>
<PackageTags>gobject;gir;binding;gnome;</PackageTags>
<PackageIcon>logo-128.png</PackageIcon>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
</ItemGroup>

<ItemGroup>
<None Include="../../NugetReadme.md" Pack="true" PackagePath="/"/>
<None Include="../../../img/logo-128.png" Pack="true" PackagePath="/"/>
</ItemGroup>

<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>
</Project>

0 comments on commit 3347479

Please sign in to comment.