Skip to content

Commit

Permalink
Update build action
Browse files Browse the repository at this point in the history
  • Loading branch information
Vagab0nd committed Apr 16, 2024
1 parent 26df774 commit 4f879ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.2
- name: Setup .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4.0.0
with:
dotnet-version: 6.0.x
- name: Restore dependencies
Expand All @@ -29,7 +29,7 @@ jobs:
run: dotnet test --no-build --verbosity normal -- TestRunParameters.Parameter\(name=\"Username\", value=\"${{ secrets.ANI_USERNAME }}\"\) -- TestRunParameters.Parameter\(name=\"Password\", value=\"${{ secrets.ANI_PASS }}\"\)
- name: Publish to Nuget.org
if: startsWith(github.ref, 'refs/heads/release')
run: nuget push **\*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}} --skip-duplicate
run: dotnet nuget push **\*.nupkg -s 'https://api.nuget.org/v3/index.json' -k ${{secrets.NUGET_API_KEY}} --skip-duplicate
- name: Publish to GitHub
if: startsWith(github.ref, 'refs/heads/release')
run: nuget push **\*.nupkg -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/Vagab0nd/index.json --skip-duplicate
run: dotnet nuget push **\*.nupkg -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/Vagab0nd/index.json --skip-duplicate

0 comments on commit 4f879ce

Please sign in to comment.