Skip to content

Commit

Permalink
ci: setup ghpr
Browse files Browse the repository at this point in the history
  • Loading branch information
phnx47 committed Jul 14, 2024
1 parent 87ebfb7 commit 09853c7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 25 deletions.
20 changes: 4 additions & 16 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,12 @@ root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
max_line_length = 180
max_line_length = 160
insert_final_newline = true
trim_trailing_whitespace = true

[{*.csproj, *.props, .ruleset}]
indent_size = 2

[{*.yml, *.yaml}]
indent_size = 2

[*.json]
indent_size = 2

[{*.sh, *.ps1}]
indent_size = 2

[*.cs]
indent_size = 4

Expand Down Expand Up @@ -72,12 +61,11 @@ csharp_style_conditional_delegate_call = true:suggestion
csharp_new_line_before_else = true
csharp_new_line_before_catch = true
csharp_new_line_before_finally = true
csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_members_in_anonymous_types = true

## Naming

# private fields should be _camelCase
### private fields should be _camelCase

dotnet_naming_style.underscore_prefix.capitalization = camel_case
dotnet_naming_style.underscore_prefix.required_prefix = _

Expand Down
6 changes: 0 additions & 6 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
# Auto detect text files and perform LF normalization
* text=auto

# Custom for Visual Studio
*.cs diff=csharp
*.sln merge=union
*.csproj merge=union
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ on:
jobs:
build:
name: Build
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
- name: Setup GHPR
run: dotnet nuget add source -u ${{ github.repository_owner }} -p ${{ secrets.GH_FULL_PAT }}
--store-password-in-clear-text -n github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"
- name: Build
run: dotnet build -c Release

0 comments on commit 09853c7

Please sign in to comment.