Skip to content

Commit e4d5903

Browse files
fix: github actions
1 parent 6b00be7 commit e4d5903

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,12 @@ jobs:
3030
@semantic-release/exec
3131
env:
3232
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33-
34-
deploy:
35-
name: Deploy version
36-
runs-on: ubuntu-latest
37-
strategy:
38-
matrix:
39-
project-name: [ Rapidata.MongoDB.Migrations, Rapidata.MongoDB.Migrations.AspNetCore ]
40-
needs: [ version ]
41-
steps:
33+
4234
- name: Pack & Publish to NuGet
35+
if: ${{ steps.release.outputs.new_release_version }}
4336
run: |
44-
dotnet pack src/${{ matrix.project-name }}/${{ matrix.project-path }}.csproj --configuration Release --include-symbols --output ${{ github.workspace }}/output/${{ matrix.project-name }}
45-
dotnet nuget push ${{ github.workspace }}/output/${{ matrix.project-name }}/*.nupkg -k ${{ secrets.NUGET_TOKEN }} -s ${{ secrets.NUGET_PUSH_URL }}
37+
dotnet pack src/Rapidata.MongoDB.Migrations/Rapidata.MongoDB.Migrations.csproj --configuration Release --include-symbols --output ${{ github.workspace }}/output/Rapidata.MongoDB.Migrations
38+
dotnet nuget push ${{ github.workspace }}/output/Rapidata.MongoDB.Migrations/*.nupkg -k ${{ secrets.NUGET_TOKEN }} -s ${{ secrets.NUGET_PUSH_URL }}
39+
40+
dotnet pack src/Rapidata.MongoDB.Migrations.AspNetCore/Rapidata.MongoDB.Migrations.AspNetCore.csproj --configuration Release --include-symbols --output ${{ github.workspace }}/output/Rapidata.MongoDB.Migrations.AspNetCore
41+
dotnet nuget push ${{ github.workspace }}/output/Rapidata.MongoDB.Migrations.AspNetCore/*.nupkg -k ${{ secrets.NUGET_TOKEN }} -s ${{ secrets.NUGET_PUSH_URL }}

.idea/.idea.Rapidata.MongoDB.Migrations/.idea/.name

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

updateVersion.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash
22

33
echo "new_release_version=$1" >> "$GITHUB_OUTPUT"
4-
sed -i '' "s#<Version>.*#<Version>$1</Version>#" "$2"
4+
sed -i "s#<Version>.*#<Version>$1</Version>#" "$2"

0 commit comments

Comments
 (0)