Skip to content

Commit

Permalink
Packages updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
hadevnet committed Aug 31, 2024
1 parent a164e49 commit 87b10ed
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/Packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:
permissions:
packages: write
contents: read
env:
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_PACKAGES_URL: https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -75,9 +78,18 @@ jobs:
run: dotnet nuget push ./src/BiUM.Specialized/bin/Release/*.nupkg --source "https://nuget.pkg.github.com/${GITHUB_REPOSITORY_OWNER}/index.json" -k ${{ secrets.GITHUB_TOKEN }} --skip-duplicate

# Restore dependencies after publishing internal packages
- name: Configure NuGet source
run: |
dotnet nuget remove source github || true
dotnet nuget add source ${{ env.GITHUB_PACKAGES_URL }} --name github --username ${{ github.repository_owner }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text
- name: Restore dependencies
run: dotnet restore
run: dotnet restore --source ${{ env.GITHUB_PACKAGES_URL }} --source https://api.nuget.org/v3/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Build
run: dotnet build --no-restore -c Debug
run: dotnet build --no-restore -c Debug --source ${{ env.GITHUB_PACKAGES_URL }} --source https://api.nuget.org/v3/index.json

- name: Test
run: dotnet test --no-build --verbosity normal

0 comments on commit 87b10ed

Please sign in to comment.