Skip to content

Commit 57fb420

Browse files
committed
Initial commit
0 parents  commit 57fb420

15 files changed

+949
-0
lines changed

.csharpierrc.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
printWidth: 100
2+
useTabs: false
3+
tabWidth: 2

.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 2
7+
insert_final_newline = true
8+
trim_trailing_whitespace = true
9+
10+
[*.sln]
11+
indent_style = tab
12+
13+
[*.cs]
14+
dotnet_diagnostic.IDE0055.severity = none

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/dependabot-2.0.json
2+
3+
version: 2
4+
updates:
5+
- package-ecosystem: github-actions
6+
directory: /
7+
schedule:
8+
interval: daily
9+
10+
- package-ecosystem: nuget
11+
directory: /
12+
schedule:
13+
interval: daily

.github/workflows/publish-release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
2+
3+
name: Publish release
4+
5+
on:
6+
push:
7+
tags:
8+
- "*"
9+
10+
jobs:
11+
publish-release:
12+
name: Publish release
13+
runs-on: ubuntu-latest
14+
if: startsWith(github.ref, 'refs/tags/v')
15+
steps:
16+
- name: Setup .NET
17+
uses: actions/setup-dotnet@607fce577a46308457984d59e4954e075820f10a # v3.0.3
18+
with:
19+
dotnet-version: 7.0.x
20+
- name: Checkout repo
21+
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
22+
with:
23+
ref: ${{ github.sha }}
24+
- name: Build
25+
run: dotnet build -c Release ./src
26+
- name: Publish NuGet package
27+
run: |
28+
for pkg in ./src/Luatrauma.Internal.AssemblyPublicizer.MSBuild/bin/Release/*.nupkg; do
29+
dotnet nuget push "$pkg" \
30+
--api-key "${{ secrets.NUGET_TOKEN }}" \
31+
--source https://api.nuget.org/v3/index.json
32+
done

.vscode/extensions.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"recommendations": [
3+
"csharpier.csharpier-vscode",
4+
"redhat.vscode-xml"
5+
]
6+
}

.vscode/settings.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"[csharp]": {
3+
"editor.defaultFormatter": "csharpier.csharpier-vscode"
4+
},
5+
"[xml]": {
6+
"editor.defaultFormatter": "redhat.vscode-xml"
7+
},
8+
"xml.format.enforceQuoteStyle": "preferred",
9+
"xml.preferences.quoteStyle": "double",
10+
"xml.format.closingBracketNewLine": true,
11+
"xml.format.emptyElements": "collapse",
12+
"xml.format.splitAttributes": true,
13+
"xml.format.splitAttributesIndentSize": 1,
14+
"xml.format.maxLineWidth": 100
15+
}

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 peelz
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Luatrauma.Internal.AssemblyPublicizer.MSBuild
2+
3+
An MSBuild task for automating publicization of Luatrauma assemblies.

0 commit comments

Comments
 (0)