Skip to content

Commit 09853c7

Browse files
committed
ci: setup ghpr
1 parent 87ebfb7 commit 09853c7

File tree

3 files changed

+8
-25
lines changed

3 files changed

+8
-25
lines changed

.editorconfig

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,12 @@ root = true
33
[*]
44
charset = utf-8
55
end_of_line = lf
6+
indent_size = 2
67
indent_style = space
7-
max_line_length = 180
8+
max_line_length = 160
89
insert_final_newline = true
910
trim_trailing_whitespace = true
1011

11-
[{*.csproj, *.props, .ruleset}]
12-
indent_size = 2
13-
14-
[{*.yml, *.yaml}]
15-
indent_size = 2
16-
17-
[*.json]
18-
indent_size = 2
19-
20-
[{*.sh, *.ps1}]
21-
indent_size = 2
22-
2312
[*.cs]
2413
indent_size = 4
2514

@@ -72,12 +61,11 @@ csharp_style_conditional_delegate_call = true:suggestion
7261
csharp_new_line_before_else = true
7362
csharp_new_line_before_catch = true
7463
csharp_new_line_before_finally = true
75-
csharp_new_line_before_members_in_object_initializers = true
76-
csharp_new_line_before_members_in_anonymous_types = true
7764

7865
## Naming
7966

80-
# private fields should be _camelCase
67+
### private fields should be _camelCase
68+
8169
dotnet_naming_style.underscore_prefix.capitalization = camel_case
8270
dotnet_naming_style.underscore_prefix.required_prefix = _
8371

.gitattributes

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1 @@
1-
# Auto detect text files and perform LF normalization
21
* text=auto
3-
4-
# Custom for Visual Studio
5-
*.cs diff=csharp
6-
*.sln merge=union
7-
*.csproj merge=union

.github/workflows/build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ on:
1212
jobs:
1313
build:
1414
name: Build
15-
runs-on: ubuntu-22.04
15+
runs-on: ubuntu-24.04
1616
steps:
1717
- name: Checkout
1818
uses: actions/checkout@v4
19-
- name: Setup .NET
20-
uses: actions/setup-dotnet@v4
19+
- name: Setup GHPR
20+
run: dotnet nuget add source -u ${{ github.repository_owner }} -p ${{ secrets.GH_FULL_PAT }}
21+
--store-password-in-clear-text -n github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"
2122
- name: Build
2223
run: dotnet build -c Release

0 commit comments

Comments
 (0)