Skip to content

Commit

Permalink
Add Initial Commit for Metadata submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
RohitM-IN committed Jan 8, 2024
1 parent 09b843b commit 801728b
Show file tree
Hide file tree
Showing 6 changed files with 514 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build Check

on:
push:
branches:
- main

jobs:
build_check:
runs-on: ubuntu-latest

steps:
- name: Checkout Main Repository
uses: actions/checkout@v2
with:
repository: 'DbSyncKit/DbSyncKit'
submodules: true

- name: Pull & update submodules recursively
run: |
git submodule update --init --recursive
git submodule update --recursive --remote
- name: Setup .NET Core
uses: actions/setup-dotnet@v2
with:
dotnet-version: '8.0.x'

- name: Build DbSyncKit
run: |
cd DbSyncKit.MSSQL.Metadata/src
dotnet build -c Release
34 changes: 34 additions & 0 deletions .github/workflows/nuget_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build and Publish NuGet Package

on:
release:
types:
- created

jobs:
build_and_publish:
runs-on: ubuntu-latest

steps:
- name: Checkout Main Repository
uses: actions/checkout@v2
with:
repository: 'DbSyncKit/DbSyncKit'

- name: Pull & update submodules recursively
run: |
git submodule update --init --recursive
git submodule update --recursive --remote
- name: Setup .NET Core
uses: actions/setup-dotnet@v2
with:
dotnet-version: '8.0.x'

- name: Build and Publish DbSyncKit.MSSQL.Metadata
run: |
cd DbSyncKit.MSSQL.Metadata/src
dotnet build -c Release
dotnet pack -c Release
dotnet nuget push bin/Release/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_DEPLOY }}
Loading

0 comments on commit 801728b

Please sign in to comment.