Skip to content

Commit a35f20d

Browse files
committed
Initial Code
1 parent 80c8ca5 commit a35f20d

16 files changed

Lines changed: 1789 additions & 2 deletions
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build and Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Setup .NET
20+
uses: actions/setup-dotnet@v4
21+
with:
22+
dotnet-version: '8.0.x'
23+
24+
- name: Restore dependencies
25+
run: dotnet restore
26+
27+
- name: Build
28+
run: dotnet build --no-restore
29+
30+
- name: Run tests
31+
continue-on-error: true
32+
run: dotnet test --no-build --verbosity normal --logger "trx"
33+
34+
- name: Upload test results
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: test-results
38+
path: ./**/TestResults/**/*.trx
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Publish to NuGet
2+
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Setup .NET
17+
uses: actions/setup-dotnet@v4
18+
with:
19+
dotnet-version: '8.0.x'
20+
21+
- name: 'Get Version'
22+
id: version
23+
uses: battila7/get-version-action@v2
24+
25+
- name: Pack
26+
run: dotnet pack --configuration Release /p:PackageVersion=${{ steps.version.outputs.version-without-v }} /p:PackageReleaseNotes="See https://github.com/ByteAether/QueryLink/releases/tag/${{ github.event.release.tag_name }}" --output ./output
27+
28+
- name: Upload NuGet package as artifact
29+
uses: actions/upload-artifact@v4
30+
with:
31+
name: nuget-package
32+
path: ./output/*.nupkg
33+
34+
- name: Publish to NuGet
35+
run: dotnet nuget push ./output/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 QueryLink
3+
Copyright (c) 2024 ByteAether, Joonatan Uusv�li
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)