Skip to content

Commit

Permalink
refactor: workflow update and fix
Browse files Browse the repository at this point in the history
  • Loading branch information
onurkanbakirci committed Dec 16, 2023
1 parent 69a15c7 commit 17bb587
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/composite/publish-lib/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ runs:
shell: "bash"
run: dotnet pack ${{ inputs.path }} --configuration Release --no-build

- name: Add github as a source
shell: "bash"
run: dotnet nuget add source --username onurkanbakirci --password ${{inputs.api_key}} --store-password-in-clear-text --name github ${{inputs.package_source}}}

- name: Publish nuget packages
shell: "bash"
run: dotnet nuget push ${{ inputs.nupkg_path }} --source ${{inputs.source}} --api-key ${{inputs.api_key}}
run: dotnet nuget push ${{ inputs.nupkg_path }} -k ${{inputs.api_key}} -s ${{inputs.package_source}}
3 changes: 0 additions & 3 deletions .github/workflows/integration-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ env:

project_path: ./src/Integration.Core/
nupkg_path: ./src/Integration.Core/bin/Release/Integration.Core.1.0.0.nupkg
nupkg_source: 'github'
nupkg_github_secret: ${{ secrets.GITHUB_TOKEN }}
nupkg_nuget_secret: ${{ secrets.NUGET_API_KEY }}
github_registry_url: https://nuget.pkg.github.com/onurkanbakirci/index.json
Expand Down Expand Up @@ -74,7 +73,6 @@ jobs:
package_source: ${{env.github_registry_url}}
path: ${{ env.project_path }}
nupkg_path: ${{env.nupkg_path}}
source: ${{ env.nupkg_source }}
api_key: ${{ env.nupkg_github_secret }}

publish_lib_to_nuget:
Expand All @@ -92,5 +90,4 @@ jobs:
package_source: ${{env.nuget_registry_url}}
path: ${{ env.project_path }}
nupkg_path: ${{env.nupkg_path}}
source: ${{ env.nupkg_source }}
api_key: ${{ env.nupkg_nuget_secret }}
5 changes: 1 addition & 4 deletions .github/workflows/trendyol-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ env:

project_path: ./src/Marketplaces/Integration.Marketplaces.Trendyol/
nupkg_path: ./src/Marketplaces/Integration.Marketplaces.Trendyol/bin/Release/Integration.Marketplaces.Trendyol.1.0.0.nupkg
nupkg_source: 'github'
nupkg_github_secret: ${{ secrets.GITHUB_TOKEN }}
nupkg_nuget_secret: ${{ secrets.NUGET_API_KEY }}
github_registry_url: https://nuget.pkg.github.com/onurkanbakirci/index.json
Expand Down Expand Up @@ -51,7 +50,7 @@ jobs:
test_lib:
name: Test Lib
runs-on: ubuntu-latest
needs: build-lib
needs: build_lib

steps:
- name: Checkout repository
Expand All @@ -75,7 +74,6 @@ jobs:
package_source: ${{env.github_registry_url}}
path: ${{ env.project_path }}
nupkg_path: ${{env.nupkg_path}}
source: ${{ env.nupkg_source }}
api_key: ${{ env.nupkg_github_secret }}

publish_lib_to_nuget:
Expand All @@ -93,5 +91,4 @@ jobs:
package_source: ${{env.nuget_registry_url}}
path: ${{ env.project_path }}
nupkg_path: ${{env.nupkg_path}}
source: ${{ env.nupkg_source }}
api_key: ${{ env.nupkg_nuget_secret }}

0 comments on commit 17bb587

Please sign in to comment.