Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
RohitM-IN committed Dec 31, 2023
1 parent e647dd3 commit f0ecda2
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build Check

on:
push:
branches:
- main

jobs:
build_check:
runs-on: ubuntu-latest

strategy:
matrix:
dotnet-version: [7.0, 8.0]

steps:
- name: Checkout Main Repository
uses: actions/checkout@v2

- name: Setup .NET Core
uses: actions/setup-dotnet@v2
with:
dotnet-version: ${{ matrix.dotnet-version }}

- name: Build DbSyncKit
run: |
dotnet build -c Release
28 changes: 28 additions & 0 deletions .github/workflows/nuget_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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: Setup .NET Core
uses: actions/setup-dotnet@v2
with:
dotnet-version: '8.0'

- name: Build and Publish DbSyncKit.Templates.PostgreSQL
run: |
cd DbSyncKit.Templates.PostgreSQL/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 }}

0 comments on commit f0ecda2

Please sign in to comment.