Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
onurkanbakirci committed Dec 12, 2023
0 parents commit e891c78
Show file tree
Hide file tree
Showing 75 changed files with 2,397 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/composite/publish-lib/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "Publish dotnet lib"
description: "Deploy dotnet lib to registry"

inputs:
path:
description: "Path of the project"
required: true
nupkg_path:
description: "Path of the nupkg"
required: true
source:
description: "Destination package source"
required: true
api_key:
description: "Destination package source api key"
required: true

runs:
using: "composite"
steps:

- name: Build the Library
shell: "bash"
run: |
cd ${{ inputs.path }}
dotnet build --configuration Release
- name: Create nuget packages
shell: "bash"
run: dotnet pack ${{ inputs.path }} --configuration Release --no-build

- name: Publish nuget packages
shell: "bash"
run: dotnet nuget push ${{ inputs.nupkg_path }} --source ${{inputs.source}} --api-key ${{inputs.api_key}}
73 changes: 73 additions & 0 deletions .github/workflows/integration.core.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Integration.Core

on:
workflow_dispatch:
workflow_call:
push:
branches:
- main

paths:
- src/Integration.Core/**
- .github/workflows/integration-core.yml
- .github/workflows/composite/**

env:
#For build process
owner: onurkanbakirci
repo: Integration

project_path: ./src/Integration.Core/
nupkg_path: ./src/Integration.Core/bin/Release/net8.0/Integration.Core.12.12.23.1.0.0.nupkg
nupkg_source: github
nupkg_secret: ${{ secrets.GITHUB_TOKEN }}

jobs:
build-lib:
name: Build Lib
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup .NET
uses: actions/setup-dotnet@v7
with:
dotnet-version: 8.0.0

- name: Restore dependencies
run: dotnet restore

- name: Build
run: |
cd ${{env.project_path}}
dotnet build --no-restore
test-lib:
name: Test Lib
runs-on: ubuntu-latest
needs: build-lib

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Test
run: |
publish-lib:
name: Publish Lib
runs-on: ubuntu-latest
needs: test-lib

steps:
- name: Checkout repository
uses: actions/checkout@v2

- uses: ./.github/workflows/composite/publish-lib
with:
path: ${{ env.project_path }}
nupkg_path: ${{env.nupkg_path}}
source: ${{ env.nupkg_source }}
api_key: ${{ env.nupkg_secret }}
74 changes: 74 additions & 0 deletions .github/workflows/trendyol-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Integration.Marketplaces.Trendyol

on:
workflow_dispatch:
workflow_call:
push:
branches:
- main

paths:
- src/Integration.Core/**
- src/Marketplaces/Integration.Marketplaces.Trendyol/**
- .github/workflows/trendyol-integration.yml
- .github/workflows/composite/**

env:
#For build process
owner: onurkanbakirci
repo: Integration

project_path: ./src/Integration.Marketplaces.Trendyol/
nupkg_path: ./src/Integration.Marketplaces.Trendyol/bin/Release/net8.0/Integration.Marketplaces.Trendyol.12.12.23.1.0.0.nupkg
nupkg_source: github
nupkg_secret: ${{ secrets.GITHUB_TOKEN }}

jobs:
build-lib:
name: Build Lib
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup .NET
uses: actions/setup-dotnet@v7
with:
dotnet-version: 8.0.0

- name: Restore dependencies
run: dotnet restore

- name: Build
run: |
cd ${{env.project_path}}
dotnet build --no-restore
test-lib:
name: Test Lib
runs-on: ubuntu-latest
needs: build-lib

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Test
run: |
publish-lib:
name: Publish Lib
runs-on: ubuntu-latest
needs: test-lib

steps:
- name: Checkout repository
uses: actions/checkout@v2

- uses: ./.github/workflows/composite/publish-lib
with:
path: ${{ env.project_path }}
nupkg_path: ${{env.nupkg_path}}
source: ${{ env.nupkg_source }}
api_key: ${{ env.nupkg_secret }}
Loading

0 comments on commit e891c78

Please sign in to comment.