Skip to content

Commit 5c44d47

Browse files
authored
Merge pull request #89 from messerli-informatik-ag/deterministic-builds
2 parents 3828944 + 88a6891 commit 5c44d47

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed

.editorconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ indent_style = space
1010
indent_size = 4
1111
trim_trailing_whitespace = true
1212

13+
[*.yml]
14+
indent_size = 2

.github/workflows/build.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,18 @@ jobs:
2525
run: dotnet fsi scripts/test-files-are-importable-by-msbuild.fsx
2626
- name: Show NuGet package content
2727
run: unzip -l nupkg/*.nupkg
28+
nupkg:
29+
name: Generate NuGet Packages
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v3
33+
- uses: actions/setup-dotnet@v3
34+
name: Install Current .NET SDK
35+
- name: Generate NuGet Packages
36+
run: dotnet pack --configuration Release --output nupkg
37+
- uses: actions/upload-artifact@v3
38+
if: success() && github.ref == 'refs/heads/main'
39+
with:
40+
name: nupkg
41+
path: nupkg/*
42+
retention-days: 1

Directory.Build.props

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,14 @@
44
<Authors>Messerli Informatik AG</Authors>
55
<PackageLicenseExpression>MIT OR Apache-2.0</PackageLicenseExpression>
66
<PackageProjectUrl>https://github.com/messerli-informatik-ag/code-style</PackageProjectUrl>
7-
<RepositoryType>git</RepositoryType>
8-
<RepositoryUrl>https://github.com/messerli-informatik-ag/code-style</RepositoryUrl>
97
<Copyright>© Messerli Informatik AG. All rights reserved.</Copyright>
108
</PropertyGroup>
9+
<PropertyGroup Label="Deterministic Builds and Source Link">
10+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
11+
<ContinuousIntegrationBuild Condition="'$(GITHUB_ACTIONS)' == 'true'">true</ContinuousIntegrationBuild>
12+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
13+
</PropertyGroup>
14+
<ItemGroup Label="Deterministic Builds and Source Link">
15+
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="all" Version="[1.1.1]" />
16+
</ItemGroup>
1117
</Project>

0 commit comments

Comments
 (0)