Skip to content

Commit 4684c10

Browse files
committed
use dotnet.reprobuilds only when in release mode due to impact on source directory location
1 parent 392f30f commit 4684c10

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Build and test
22

3-
on:
3+
on:
44
push:
55
branches:
66
- main

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77

88
jobs:
99
release:
10+
env:
11+
IsRelease: true
12+
1013
runs-on: ubuntu-latest
1114

1215
steps:

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<ItemGroup>
1414
<PackageReference Include="Ionide.KeepAChangelog.Tasks" Version="0.1.8" />
15-
<PackageReference Include="Dotnet.ReproducibleBuilds" Version="1.1.1" />
15+
<PackageReference Condition="'$(IsRelease)' == 'true'" Include="Dotnet.ReproducibleBuilds" Version="1.1.1" />
1616
</ItemGroup>
1717

1818
</Project>

0 commit comments

Comments
 (0)