Skip to content

Commit

Permalink
ci: speed up packages
Browse files Browse the repository at this point in the history
  • Loading branch information
SonicGD committed Feb 15, 2023
1 parent 295b128 commit 8ede5a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Build
run: dotnet build -c Release
- name: Create packages
run: find ./src -type f -name '*.csproj' -exec dotnet pack --no-build -c Release -o $(pwd)/packages {} \;
run: find ./src -type f -name '*.csproj' | xargs -n 1 -P 10 dotnet pack --no-build -c Release -o $(pwd)/packages
apps:
runs-on: ubuntu-latest
container: ghcr.io/sitkoru/actions-container
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ jobs:
- name: Build
run: dotnet build -c Release /p:Version=${{ steps.prep.outputs.version }}
- name: Create packages
run: find ./src -type f -name '*.csproj' -exec dotnet pack --no-build -c Release /p:Version=${{ steps.prep.outputs.version }} -o $(pwd)/packages {} \;
run: find ./src -type f -name '*.csproj' | xargs -n 1 -P 10 dotnet pack --no-build -c Release /p:Version=${{ steps.prep.outputs.version }} -o $(pwd)/packages
- name: Push to Github Packages
run: find packages -type f -name 'Sitko.Core.*.nupkg' -print0 | xargs -0 -n 10 -P 4 dotnet nuget push -s https://nuget.pkg.github.com/sitkoru/index.json --skip-duplicate --no-symbols -k ${GITHUB_TOKEN}
run: find packages -type f -name 'Sitko.Core.*.nupkg' -print0 | xargs -0 -n 10 -P 4 dotnet nuget push -s https://nuget.pkg.github.com/sitkoru/index.json --skip-duplicate --no-symbols -k ${GITHUB_TOKEN}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Push to Nuget
run: find packages -type f -name 'Sitko.Core.*.nupkg' -print0 | xargs -0 -n 10 -P 4 dotnet nuget push -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }}
run: find packages -type f -name 'Sitko.Core.*.nupkg' -print0 | xargs -0 -n 10 -P 4 dotnet nuget push -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }}
- name: Download Sitko.Core
uses: actions/checkout@v3
with:
Expand Down

0 comments on commit 8ede5a7

Please sign in to comment.