Skip to content

Commit da750ca

Browse files
committed
initial work from previous repo
1 parent 2014294 commit da750ca

File tree

293 files changed

+215890
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

293 files changed

+215890
-0
lines changed

.gitattributes

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
*.doc diff=astextplain
2+
*.DOC diff=astextplain
3+
*.docx diff=astextplain
4+
*.DOCX diff=astextplain
5+
*.dot diff=astextplain
6+
*.DOT diff=astextplain
7+
*.pdf diff=astextplain
8+
*.PDF diff=astextplain
9+
*.rtf diff=astextplain
10+
*.RTF diff=astextplain
11+
12+
*.jpg binary
13+
*.png binary
14+
*.gif binary
15+
16+
*.cs text=auto diff=csharp
17+
*.vb text=auto
18+
*.c text=auto
19+
*.cpp text=auto
20+
*.cxx text=auto
21+
*.h text=auto
22+
*.hxx text=auto
23+
*.py text=auto
24+
*.rb text=auto
25+
*.java text=auto
26+
*.html text=auto
27+
*.htm text=auto
28+
*.css text=auto
29+
*.scss text=auto
30+
*.sass text=auto
31+
*.less text=auto
32+
*.js text=auto
33+
*.lisp text=auto
34+
*.clj text=auto
35+
*.sql text=auto
36+
*.php text=auto
37+
*.lua text=auto
38+
*.m text=auto
39+
*.asm text=auto
40+
*.erl text=auto
41+
*.fs text=auto
42+
*.fsx text=auto
43+
*.hs text=auto
44+
45+
*.csproj text=auto merge=union
46+
*.vbproj text=auto merge=union
47+
*.fsproj text=auto merge=union
48+
*.dbproj text=auto merge=union
49+
*.sln text=auto eol=crlf merge=union

.github/workflows/dotnet-test.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: .NET Tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest]
15+
16+
steps:
17+
- name: Checkout 🛎️
18+
uses: actions/checkout@v5
19+
20+
- name: Setup DotNet ✨
21+
uses: actions/setup-dotnet@v5
22+
with:
23+
dotnet-version: |
24+
8.0.x
25+
9.0.x
26+
10.0.x
27+
28+
- name: Install dependencies 📦️
29+
run: dotnet restore
30+
31+
- name: Build 🔨
32+
run: dotnet build --no-restore -c Release
33+
34+
- name: Test ✅
35+
run: dotnet test --verbosity normal
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Note this will only work with Release-Please if you have given it a PAT.
2+
# The default GITHUB_TOKEN does not have permission to run workflows on releases
3+
name: Publish to NuGet
4+
5+
on:
6+
release:
7+
types: [published]
8+
workflow_dispatch:
9+
10+
permissions:
11+
id-token: write # Required for OIDC
12+
contents: read
13+
14+
jobs:
15+
release:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout 🛎️
19+
uses: actions/checkout@v5
20+
21+
- name: Setup DotNet ✨
22+
uses: actions/setup-dotnet@v5
23+
with:
24+
dotnet-version: |
25+
8.0.x
26+
9.0.x
27+
10.0.x
28+
29+
- name: Install dependencies 📦️
30+
run: dotnet restore
31+
32+
- name: Build 🔨
33+
run: dotnet build --no-restore -c Release
34+
35+
# If not using <GeneratePackageOnBuild>true</GeneratePackageOnBuild>
36+
- name: Pack NuGet 🏗️
37+
run: |
38+
dotnet pack --no-build -v normal --include-symbols -o nupkg
39+
40+
# Get a short-lived NuGet API key
41+
- name: NuGet login (OIDC → temp API key)
42+
uses: NuGet/login@v1
43+
id: login
44+
with:
45+
user: ${{secrets.NUGET_USER}}
46+
47+
- name: Push NuGet 🚀
48+
run: |
49+
dotnet nuget push **/*.nupkg -k ${{steps.login.outputs.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
50+
# dotnet nuget push **/*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://f.feedz.io/jcamp/nuget-test/nuget/index.json --skip-duplicate
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
workflow_dispatch:
6+
7+
permissions:
8+
contents: write
9+
issues: write
10+
pull-requests: write
11+
12+
name: release-please
13+
14+
jobs:
15+
release-please:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: googleapis/release-please-action@v4
19+
with:
20+
token: ${{ secrets.JCAMP_GH_TOKEN }}

0 commit comments

Comments
 (0)