Skip to content

Commit 54836e4

Browse files
committed
Initial commit
1 parent 1350b6c commit 54836e4

44 files changed

Lines changed: 6473 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: Publish to NuGet
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
workflow_dispatch:
8+
inputs:
9+
version:
10+
description: 'Version to publish (e.g., 1.0.0)'
11+
required: true
12+
type: string
13+
14+
jobs:
15+
publish:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
22+
- name: Setup .NET
23+
uses: actions/setup-dotnet@v4
24+
with:
25+
dotnet-version: '8.0.x'
26+
27+
- name: Restore dependencies
28+
run: dotnet restore
29+
30+
- name: Build solution
31+
run: dotnet build --configuration Release --no-restore
32+
33+
- name: Run tests
34+
run: dotnet test --configuration Release --no-build --verbosity normal
35+
36+
- name: Determine version
37+
id: version
38+
run: |
39+
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
40+
echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT
41+
else
42+
TAG=${GITHUB_REF#refs/tags/v}
43+
echo "VERSION=${TAG}" >> $GITHUB_OUTPUT
44+
fi
45+
46+
- name: Pack Community.LiteDB.Aot.SourceGenerators
47+
run: |
48+
dotnet pack Community.LiteDB.Aot.SourceGenerators/Community.LiteDB.Aot.SourceGenerators.csproj \
49+
--configuration Release \
50+
--no-build \
51+
--output ./artifacts \
52+
/p:PackageVersion=${{ steps.version.outputs.VERSION }}
53+
54+
- name: Pack Community.LiteDB.Aot
55+
run: |
56+
dotnet pack Community.LiteDB.Aot/Community.LiteDB.Aot.csproj \
57+
--configuration Release \
58+
--no-build \
59+
--output ./artifacts \
60+
/p:PackageVersion=${{ steps.version.outputs.VERSION }}
61+
62+
- name: Publish to NuGet
63+
run: |
64+
dotnet nuget push ./artifacts/*.nupkg \
65+
--api-key ${{ secrets.NUGET_API_KEY }} \
66+
--source https://api.nuget.org/v3/index.json \
67+
--skip-duplicate
68+
69+
- name: Create GitHub Release
70+
uses: softprops/action-gh-release@v1
71+
if: startsWith(github.ref, 'refs/tags/')
72+
with:
73+
files: ./artifacts/*.nupkg
74+
generate_release_notes: true
75+
env:
76+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 272 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,272 @@
1+
## A streamlined .gitignore for modern .NET projects
2+
## including temporary files, build results, and
3+
## files generated by popular .NET tools. If you are
4+
## developing with Visual Studio, the VS .gitignore
5+
## https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
6+
## has more thorough IDE-specific entries.
7+
##
8+
## Get latest from https://github.com/github/gitignore/blob/main/Dotnet.gitignore
9+
10+
# Build results
11+
[Dd]ebug/
12+
[Dd]ebugPublic/
13+
[Rr]elease/
14+
[Rr]eleases/
15+
x64/
16+
x86/
17+
[Ww][Ii][Nn]32/
18+
[Aa][Rr][Mm]/
19+
[Aa][Rr][Mm]64/
20+
bld/
21+
[Bb]in/
22+
[Oo]bj/
23+
[Ll]og/
24+
[Ll]ogs/
25+
26+
# .NET Core
27+
project.lock.json
28+
project.fragment.lock.json
29+
artifacts/
30+
31+
# ASP.NET Scaffolding
32+
ScaffoldingReadMe.txt
33+
34+
# NuGet Packages
35+
*.nupkg
36+
# NuGet Symbol Packages
37+
*.snupkg
38+
39+
# Others
40+
~$*
41+
*~
42+
CodeCoverage/
43+
44+
# MSBuild Binary and Structured Log
45+
*.binlog
46+
47+
# MSTest test Results
48+
[Tt]est[Rr]esult*/
49+
[Bb]uild[Ll]og.*
50+
51+
# NUnit
52+
*.VisualState.xml
53+
TestResult.xml
54+
nunit-*.xml
55+
56+
# Visual Studio files
57+
*.rsuser
58+
*.suo
59+
*.user
60+
*.userosscache
61+
*.sln.docstates
62+
63+
# User-specific files (MonoDevelop/Xamarin Studio)
64+
*.userprefs
65+
66+
# Mono auto generated files
67+
mono_crash.*
68+
69+
# Visual Studio Code
70+
.vscode/
71+
72+
# Rider
73+
.idea/
74+
*.sln.iml
75+
76+
# Visual Studio cache/options directory
77+
.vs/
78+
79+
# Visual Studio Trace Files
80+
*.e2e
81+
82+
# TFS 2012 Local Workspace
83+
$tf/
84+
85+
# Guidance Automation Toolkit
86+
*.gpState
87+
88+
# ReSharper
89+
_ReSharper*/
90+
*.[Rr]e[Ss]harper
91+
*.DotSettings.user
92+
93+
# TeamCity
94+
_TeamCity*
95+
96+
# DotCover
97+
*.dotCover
98+
99+
# AxoCover
100+
.axoCover/*
101+
!.axoCover/settings.json
102+
103+
# Coverlet
104+
coverage*.json
105+
coverage*.xml
106+
coverage*.info
107+
108+
# Visual Studio profiler
109+
*.psess
110+
*.vsp
111+
*.vspx
112+
*.sap
113+
114+
# Visual Studio test results
115+
*.trx
116+
*.coverage
117+
*.coveragexml
118+
119+
# NCrunch
120+
_NCrunch_*
121+
.*crunch*.local.xml
122+
nCrunchTemp_*
123+
124+
# MightyMoose
125+
*.mm.*
126+
AutoTest.Net/
127+
128+
# Web workbench (sass)
129+
.sass-cache/
130+
131+
# Installshield output folder
132+
[Ee]xpress/
133+
134+
# DocProject
135+
DocProject/buildhelp/
136+
DocProject/Help/*.HxT
137+
DocProject/Help/*.HxC
138+
DocProject/Help/Html2
139+
DocProject/Help/html
140+
141+
# Click-Once directory
142+
publish/
143+
144+
# Publish Web Output
145+
*.[Pp]ublish.xml
146+
*.azurePubxml
147+
# Note: Comment the next line if you want to checkin your web deploy settings,
148+
# but database connection strings (with potential passwords) will be unencrypted
149+
*.pubxml
150+
*.publishproj
151+
152+
# Microsoft Azure Web App publish settings
153+
PublishScripts/
154+
155+
# Windows Azure Build Output
156+
csx/
157+
*.build.csdef
158+
159+
# Microsoft Azure Emulator
160+
ecf/
161+
rcf/
162+
163+
# Windows Store app package directories and files
164+
AppPackages/
165+
BundleArtifacts/
166+
Package.StoreAssociation.xml
167+
_pkginfo.txt
168+
*.appx
169+
*.appxbundle
170+
*.appxupload
171+
172+
# SQL Server files
173+
*.mdf
174+
*.ldf
175+
*.ndf
176+
177+
# Business Intelligence projects
178+
*.rdl.data
179+
*.bim.layout
180+
*.bim_*.settings
181+
*.rptproj.rsuser
182+
*- [Bb]ackup.rdl
183+
*- [Bb]ackup ([0-9]).rdl
184+
*- [Bb]ackup ([0-9][0-9]).rdl
185+
186+
# Microsoft Fakes
187+
FakesAssemblies/
188+
189+
# GhostDoc plugin setting file
190+
*.GhostDoc.xml
191+
192+
# Node.js Tools for Visual Studio
193+
.ntvs_analysis.dat
194+
node_modules/
195+
196+
# Visual Studio 6 build log
197+
*.plg
198+
199+
# Visual Studio 6 workspace options file
200+
*.opt
201+
202+
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
203+
*.vbw
204+
205+
# Visual Studio LightSwitch build output
206+
**/*.HTMLClient/GeneratedArtifacts
207+
**/*.DesktopClient/GeneratedArtifacts
208+
**/*.DesktopClient/ModelManifest.xml
209+
**/*.Server/GeneratedArtifacts
210+
**/*.Server/ModelManifest.xml
211+
_Pvt_Extensions
212+
213+
# Paket dependency manager
214+
.paket/paket.exe
215+
paket-files/
216+
217+
# FAKE - F# Make
218+
.fake/
219+
220+
# CodeRush personal settings
221+
.cr/personal
222+
223+
# Python Tools for Visual Studio (PTVS)
224+
__pycache__/
225+
*.pyc
226+
227+
# Cake - Uncomment if you are using it
228+
# tools/**
229+
# !tools/packages.config
230+
231+
# Tabs Studio
232+
*.tss
233+
234+
# Telerik's JustMock configuration file
235+
*.jmconfig
236+
237+
# BizTalk build output
238+
*.btp.cs
239+
*.btm.cs
240+
*.odx.cs
241+
*.xsd.cs
242+
243+
# OpenCover UI analysis results
244+
OpenCover/
245+
246+
# Azure Stream Analytics local run output
247+
ASALocalRun/
248+
249+
# MSBuild Binary and Structured Log
250+
*.binlog
251+
252+
# NVidia Nsight GPU debugger configuration file
253+
*.nvuser
254+
255+
# MFractors (Xamarin productivity tool) working folder
256+
.mfractor/
257+
258+
# Local History for Visual Studio
259+
.localhistory/
260+
261+
# BeatPulse healthcheck temp database
262+
healthchecksdb
263+
264+
# Backup folder for Package Reference Convert tool in Visual Studio 2017
265+
MigrationBackup/
266+
267+
# Ionide (cross platform F# VS Code tools) working folder
268+
.ionide/
269+
270+
# Fody - auto-generated XML schema
271+
FodyWeavers.xsd
272+
publish.bat
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# BenchmarkDotNet artifacts
2+
BenchmarkDotNet.Artifacts/
3+
*.log
4+
5+
# Build outputs
6+
bin/
7+
obj/

0 commit comments

Comments
 (0)