File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree File renamed without changes.
Original file line number Diff line number Diff line change 1+ name : Library
2+
3+ on :
4+ push :
5+ branches : [master]
6+ paths-ignore :
7+ - .github/dependabot.yml
8+ - .vscode/**
9+ - .editorconfig
10+ - .gitignore
11+ pull_request :
12+ paths-ignore :
13+ - .github/dependabot.yml
14+ - .vscode/**
15+ - .editorconfig
16+ - .gitignore
17+
18+ env :
19+ DOTNET_NOLOGO : true
20+ DOTNET_SKIP_FIRST_TIME_EXPERIENCE : true
21+ DOTNET_CLI_TELEMETRY_OPTOUT : true
22+
23+ jobs :
24+ library :
25+ runs-on : ubuntu-latest
26+
27+ steps :
28+ - name : Checkout repository
29+ uses : actions/checkout@v4.2.2
30+
31+ - name : Setup .NET
32+ uses : actions/setup-dotnet@v4.3.1
33+ with :
34+ dotnet-version : 9.0
35+
36+ - name : Lint dotnet
37+ run : dotnet format --verify-no-changes --verbosity detailed
38+
39+ - name : Build with dotnet
40+ run : dotnet build --configuration Release
41+
42+ - name : Pack
43+ run : |
44+ TAG=$(date +%Y.%-m.%-d.)${{ github.run_number }}
45+ REPOSITORYURL=${{ github.server_url }}/${{ github.repository }}
46+ echo TAG=$TAG
47+ echo REPOSITORYURL=$REPOSITORYURL
48+ dotnet pack -p:PackageVersion=$TAG -p:RepositoryUrl=$REPOSITORYURL
49+
50+ - name : Publish
51+ if : github.event_name == 'push' && !github.event.dryrun
52+ run : |
53+ dotnet nuget push artifacts/package/release/*.nupkg \
54+ --api-key ${{ github.token }} \
55+ --source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json \
56+ --skip-duplicate \
57+ --no-symbols
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 66 "editor.rulers" : [
77 120
88 ],
9+ "files.autoSave" : " onFocusChange" ,
10+ "files.autoSaveWhenNoErrors" : true ,
911 "files.eol" : " \n " ,
1012 "files.trimTrailingWhitespace" : true ,
1113 "files.trimFinalNewlines" : true ,
1416 "**/artifacts" : true
1517 },
1618 "git.rebaseWhenSync" : true ,
17- "omnisharp.enableEditorConfigSupport" : true
19+ "omnisharp.enableEditorConfigSupport" : true ,
20+ "omnisharp.enableRoslynAnalyzers" : true
1821}
Original file line number Diff line number Diff line change 11{
22 "version" : " 2.0.0" ,
33 "tasks" : [
4+ {
5+ "label" : " clean" ,
6+ "command" : " dotnet" ,
7+ "type" : " process" ,
8+ "args" : [
9+ " clean"
10+ ],
11+ "group" : {
12+ "kind" : " build" ,
13+ "isDefault" : true
14+ },
15+ "presentation" : {
16+ "echo" : false ,
17+ "reveal" : " always" ,
18+ "panel" : " dedicated" ,
19+ "showReuseMessage" : false ,
20+ "clear" : true
21+ },
22+ "options" : {
23+ "statusbar" : {
24+ "label" : " $(trash) clean"
25+ }
26+ }
27+ },
428 {
529 "label" : " dotnet build" ,
630 "type" : " process" ,
Original file line number Diff line number Diff line change 1+ <Solution >
2+ <Project Path =" Dark.IO/Dark.IO.csproj" />
3+ </Solution >
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
4- <TargetFramework >net8 .0</TargetFramework >
5- <LangVersion >12 .0</LangVersion >
4+ <TargetFramework >net9 .0</TargetFramework >
5+ <LangVersion >13 .0</LangVersion >
66 <Nullable >enable</Nullable >
77 <ImplicitUsings >enable</ImplicitUsings >
88 <PackageId >Dark.IO</PackageId >
1616 </PropertyGroup >
1717
1818 <ItemGroup >
19- <None Include =" README.md" pack =" true" PackagePath =" ." />
19+ <None Include =" ..\ README.md" Pack =" true" PackagePath =" ." />
2020 </ItemGroup >
2121
22+ <Target Name =" PostClean" AfterTargets =" Clean" >
23+ <RemoveDir Directories =" $(BaseOutputPath)" /><!-- bin -->
24+ <RemoveDir Directories =" $(BaseIntermediateOutputPath)" /><!-- obj -->
25+ </Target >
26+
2227</Project >
File renamed without changes.
Original file line number Diff line number Diff line change 11# Dark.IO (Library)
2- ![ Library] ( https://github.com/MarkusRodler/Dark.IO/workflows/.NET /badge.svg )
2+ ![ Library] ( https://github.com/MarkusRodler/Dark.IO/workflows/Library /badge.svg )
33
44## How to use
55
You can’t perform that action at this time.
0 commit comments