Skip to content

Commit

Permalink
[TECH-113] Enable deterministic builds and GitHub source link (#11)
Browse files Browse the repository at this point in the history
* Enable deterministic builds and GitHub source link

* Removed mentions to master branch

Co-authored-by: Anthony Simmon <[email protected]>
  • Loading branch information
asimmon and asimmon authored Jan 9, 2023
1 parent ba16b0d commit 4ccb51f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI

on:
pull_request:
branches: ["main", "master"]
branches: ["main"]

jobs:
main:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CodeQL

on:
push:
branches: ["main", "master"]
branches: ["main"]
pull_request:
branches: ["main", "master"]
branches: ["main"]
schedule:
- cron: "22 6 * * 0"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish

on:
push:
branches: ["main", "master"]
branches: ["main"]
tags: ["*.*.*"]

jobs:
Expand Down
8 changes: 8 additions & 0 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@
</PackageReference>
</ItemGroup>

<!-- https://learn.microsoft.com/en-us/dotnet/standard/library-guidance/sourcelink -->
<PropertyGroup Condition=" '$(GITHUB_ACTIONS)' == 'true' Or '$(TF_BUILD)' == 'true' ">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>
<ItemGroup Condition=" '$(GITHUB_ACTIONS)' == 'true' ">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
</ItemGroup>

<ItemGroup Condition="$(MSBuildProjectName.Contains('Tests'))">
<Using Include="Xunit" />
<Using Include="Xunit.Abstractions" />
Expand Down

0 comments on commit 4ccb51f

Please sign in to comment.