-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit e891c78
Showing
75 changed files
with
2,397 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
Oops, something went wrong.