Skip to content

fix: trendyol package fix #12

fix: trendyol package fix

fix: trendyol package fix #12

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/Marketplaces/Integration.Marketplaces.Trendyol/
nupkg_path: ./src/Marketplaces/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@v4
with:
dotnet-version: 8.x
- 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 }}