Skip to content

Commit

Permalink
Merge pull request #3 from snovak7/main
Browse files Browse the repository at this point in the history
CI improvements
  • Loading branch information
snovak7 authored May 13, 2023
2 parents 322945b + 7d59c70 commit 95ed444
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ jobs:
- name: Build .NET Solution
run: dotnet build --configuration Release --no-restore
- name: Pack .NET Solution
run: dotnet pack --no-build --output pack/
run: dotnet pack --configuration Release --no-build --output pack/
- name: Publish .NET Solution to GitHub Packages
continue-on-error: true
run: dotnet nuget push pack/* --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"
- name: Publish .NET Solution to NuGet.org
continue-on-error: true
env:
apikey: ${{ secrets.NUGET_ORG_KEY }}
if: ${{ env.apikey != '' }}
run: dotnet nuget push pack/* --api-key ${{ secrets.NUGET_ORG_KEY }} --source nuget

continue-on-error: true
4 changes: 4 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/escendit/Escendit.Tools.SourceLink.GitHub</RepositoryUrl>
</PropertyGroup>
<!-- Properties for GitHub Actions -->
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<RepositoryUrl>https://github.com/$(GITHUB_REPOSITORY)</RepositoryUrl>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<PackageTags>sourcelink;source;link;github;defaults</PackageTags>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Escendit.Tools.SourceLink.Common" Version="0.1.0-rc.14" />
<PackageReference Include="Escendit.Tools.SourceLink.Common" Version="0.4.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" />
</ItemGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
<PropertyGroup>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<ContinuousIntegrationBuild Condition="'$(GITHUB_ACTIONS)' == 'true'">true</ContinuousIntegrationBuild>
</PropertyGroup>
<!-- Properties for GitHub Actions -->
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/$(GITHUB_REPOSITORY)</RepositoryUrl>
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>
</Project>

0 comments on commit 95ed444

Please sign in to comment.