Skip to content

Commit 8159ec4

Browse files
committed
ci: use standard nuget release
1 parent 3f2739e commit 8159ec4

File tree

2 files changed

+49
-4
lines changed

2 files changed

+49
-4
lines changed

.editorconfig

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# top-most EditorConfig file
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
end_of_line = lf
7+
indent_style = space
8+
indent_size = 2
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
12+
# Visual Studio Spell checker configs (https://learn.microsoft.com/en-us/visualstudio/ide/text-spell-checker?view=vs-2022#how-to-customize-the-spell-checker)
13+
spelling_exclusion_path = ./exclusion.dic
14+
15+
[*.rs]
16+
indent_size = 4
17+
18+
[*.cs]
19+
indent_size = 4
20+
charset = utf-8-bom
21+
end_of_line = unset
22+
23+
# Solution files
24+
[*.{sln,slnx}]
25+
end_of_line = unset
26+
27+
# MSBuild project files
28+
[*.{csproj,props,targets}]
29+
end_of_line = unset
30+
31+
# Xml config files
32+
[*.{ruleset,config,nuspec,resx,runsettings,DotSettings}]
33+
end_of_line = unset
34+
35+
# C# code style settings
36+
[*.{cs}]
37+
dotnet_diagnostic.IDE0044.severity = none # IDE0044: Make field readonly
38+
39+
# https://stackoverflow.com/questions/79195382/how-to-disable-fading-unused-methods-in-visual-studio-2022-17-12-0
40+
dotnet_diagnostic.IDE0051.severity = none # IDE0051: Remove unused private member
41+
dotnet_diagnostic.IDE0130.severity = none # IDE0130: Namespace does not match folder structure

.github/workflows/build-release.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,21 @@ jobs:
6767
# pack nuget
6868
- run: dotnet build -c Release -p:Version=${{ inputs.tag }}
6969
- run: dotnet pack -c Release --no-build -p:Version=${{ inputs.tag }} -o ./publish
70-
- run: dotnet nuget push "./publish/*.nupkg" -s https://www.nuget.org/api/v2/package -k ${{ steps.op-load-secret.outputs.NUGET_KEY }}
70+
- uses: Cysharp/Actions/.github/actions/upload-artifact@main
71+
with:
72+
name: nuget
73+
path: ./publish
74+
retention-days: 1
7175

7276
create-release:
7377
needs: [build-dotnet, build-and-push-rust]
7478
permissions:
7579
contents: write
7680
uses: Cysharp/Actions/.github/workflows/create-release.yaml@main
7781
with:
78-
commit-id: ''
79-
tag: ${{ inputs.tag }}
82+
commit-id: ""
8083
dry-run: ${{ inputs.dry-run }}
81-
nuget-push: false
84+
tag: ${{ inputs.tag }}
85+
nuget-push: true
8286
release-upload: false
8387
secrets: inherit

0 commit comments

Comments
 (0)