diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..0071e82 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,54 @@ +name: publish to nuget +on: + push: + branches: + - master # Default release branch +jobs: + publish: + name: build, pack & publish + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + # - name: Setup dotnet + # uses: actions/setup-dotnet@v1 + # with: + # dotnet-version: 8.0.1 + + # Publish + - name: publish Nuget package on version change + id: publish_nuget + uses: alirezanet/publish-nuget@v3.1.0 + with: + # Filepath of the project to be packaged, relative to root of repository + PROJECT_FILE_PATH: Raven.Migrations/Raven.Migrations.csproj + + # NuGet package id, used for version detection & defaults to project name + PACKAGE_NAME: RavenMigrations + + # Filepath with version info, relative to root of repository & defaults to PROJECT_FILE_PATH + # VERSION_FILE_PATH: Directory.Build.props + + # Regex pattern to extract version info in a capturing group + # VERSION_REGEX: ^\s*(.*)<\/Version>\s*$ + + # Useful with external providers like Nerdbank.GitVersioning, ignores VERSION_FILE_PATH & VERSION_REGEX + # VERSION_STATIC: 1.0.0 + + # Flag to toggle git tagging, enabled by default + # TAG_COMMIT: true + + # Format of the git tag, [*] gets replaced with actual version + # TAG_FORMAT: v* + + # API key to authenticate with NuGet server + NUGET_KEY: ${{secrets.NUGET_TOKEN}} + + # NuGet server uri hosting the packages, defaults to https://api.nuget.org + # NUGET_SOURCE: https://api.nuget.org + + # Flag to toggle pushing symbols along with nuget package to the server, disabled by default + # INCLUDE_SYMBOLS: false + + # Flag to toggle not building the project and letting pack command handle restoring & building, disabled by default + # NO_BUILD: false \ No newline at end of file diff --git a/Raven.Migrations.Sample/Raven.Migrations.Sample.csproj b/Raven.Migrations.Sample/Raven.Migrations.Sample.csproj index 81a14e8..aa82544 100644 --- a/Raven.Migrations.Sample/Raven.Migrations.Sample.csproj +++ b/Raven.Migrations.Sample/Raven.Migrations.Sample.csproj @@ -1,15 +1,11 @@ - - net7.0 + net8.0 - - + - - - + \ No newline at end of file diff --git a/Raven.Migrations.Tests/Raven.Migrations.Tests.csproj b/Raven.Migrations.Tests/Raven.Migrations.Tests.csproj index 349edbf..7ca03a4 100644 --- a/Raven.Migrations.Tests/Raven.Migrations.Tests.csproj +++ b/Raven.Migrations.Tests/Raven.Migrations.Tests.csproj @@ -1,26 +1,22 @@  - - netcoreapp3.1 - + net8.0 false - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - - + \ No newline at end of file diff --git a/Raven.Migrations.sln b/Raven.Migrations.sln index e54d364..3c4de12 100644 --- a/Raven.Migrations.sln +++ b/Raven.Migrations.sln @@ -1,4 +1,4 @@ - + Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 16 VisualStudioVersion = 16.0.30320.27 @@ -12,9 +12,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution readme.md = readme.md EndProjectSection EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Raven.Migrations.Sample", "Raven.Migrations.Sample\Raven.Migrations.Sample.csproj", "{06F1A0C0-E4CD-460A-B332-487440F603DF}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Raven.Migrations.Sample", "Raven.Migrations.Sample\Raven.Migrations.Sample.csproj", "{06F1A0C0-E4CD-460A-B332-487440F603DF}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Raven.Migrations.Tests", "Raven.Migrations.Tests\Raven.Migrations.Tests.csproj", "{221A2856-09CA-4D59-A2F4-E961D37DD155}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Raven.Migrations.Tests", "Raven.Migrations.Tests\Raven.Migrations.Tests.csproj", "{221A2856-09CA-4D59-A2F4-E961D37DD155}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/Raven.Migrations/Raven.Migrations.csproj b/Raven.Migrations/Raven.Migrations.csproj index bd83f36..5d8cbf8 100644 --- a/Raven.Migrations/Raven.Migrations.csproj +++ b/Raven.Migrations/Raven.Migrations.csproj @@ -1,21 +1,21 @@ - - netstandard2.1 + net8.0 true - 5.0.1 + 6.0.0 RavenMigrations Darrel Portzline, Khalid Abuhakmeh, Judah Gabriel Himango BitShuva Raven Migrations is a migration framework for RavenDB to help with updates to your database objects. BitShuva 2022 RavenDB.Migrations - + + https://github.com/migrating-ravens/RavenMigrations - + + ravendb, nosql, migration, schema - Allows supplying database name to operations. - + PatchCollection allows for stale timeout true true @@ -24,25 +24,21 @@ MIT logo-for-nuget.png https://github.com/migrating-ravens/RavenMigrations/ - enable - true snupkg - - - - + + + - True - + + - - + \ No newline at end of file