Skip to content

Commit

Permalink
fix: github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeparavicini committed Nov 20, 2024
1 parent 6b00be7 commit 51285a1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,12 @@ jobs:
@semantic-release/exec
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

deploy:
name: Deploy version
runs-on: ubuntu-latest
strategy:
matrix:
project-name: [ Rapidata.MongoDB.Migrations, Rapidata.MongoDB.Migrations.AspNetCore ]
needs: [ version ]
steps:

- name: Pack & Publish to NuGet
if: ${{ steps.release.outputs.new_release_version }}
run: |
dotnet pack src/${{ matrix.project-name }}/${{ matrix.project-path }}.csproj --configuration Release --include-symbols --output ${{ github.workspace }}/output/${{ matrix.project-name }}
dotnet nuget push ${{ github.workspace }}/output/${{ matrix.project-name }}/*.nupkg -k ${{ secrets.NUGET_TOKEN }} -s ${{ secrets.NUGET_PUSH_URL }}
dotnet pack src/Rapidata.MongoDB.Migrations/Rapidata.MongoDB.Migrations.csproj --configuration Release --include-symbols --output ${{ github.workspace }}/output/Rapidata.MongoDB.Migrations
dotnet nuget push ${{ github.workspace }}/output/Rapidata.MongoDB.Migrations/*.nupkg -k ${{ secrets.NUGET_TOKEN }} -s ${{ secrets.NUGET_PUSH_URL }}
dotnet pack src/Rapidata.MongoDB.Migrations.AspNetCore/Rapidata.MongoDB.Migrations.AspNetCore.csproj --configuration Release --include-symbols --output ${{ github.workspace }}/output/Rapidata.MongoDB.Migrations.AspNetCore
dotnet nuget push ${{ github.workspace }}/output/Rapidata.MongoDB.Migrations.AspNetCore/*.nupkg -k ${{ secrets.NUGET_TOKEN }} -s ${{ secrets.NUGET_PUSH_URL }}
1 change: 1 addition & 0 deletions .idea/.idea.Rapidata.MongoDB.Migrations/.idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 51285a1

Please sign in to comment.