File tree Expand file tree Collapse file tree 1 file changed +28
-28
lines changed Expand file tree Collapse file tree 1 file changed +28
-28
lines changed Original file line number Diff line number Diff line change @@ -35,31 +35,31 @@ jobs:
35
35
cd UnitTest
36
36
dotnet test Orleans.Providers.MongoDB.UnitTest.csproj --configuration Release
37
37
38
- # publish:
39
- # needs: build
40
- # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
41
- # runs-on: ubuntu-latest
42
- #
43
- # steps:
44
- # - uses: actions/checkout@v4
45
- # with:
46
- # submodules: recursive
47
- # fetch-depth: 0
48
- #
49
- # - name: Get version from tag
50
- # id: get_version
51
- # run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
52
- #
53
- # - name: Setup .NET Core
54
- # uses: actions/setup-dotnet@v4
55
- # with:
56
- # dotnet-version: 8.0.x
57
- #
58
- # - name: Pack
59
- # run: |
60
- # cd Orleans.Providers.MongoDB
61
- # dotnet pack --configuration Release /p:Version=${{ steps.get_version.outputs.VERSION }}
62
- #
63
- # - name: Publish
64
- # run: |
65
- # dotnet nuget push **/*.nupkg --source 'https://api.nuget.org/v3/index.json' --skip-duplicate -k ${{ secrets.nuget }}
38
+ publish :
39
+ needs : build
40
+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
41
+ runs-on : ubuntu-latest
42
+
43
+ steps :
44
+ - uses : actions/checkout@v4
45
+ with :
46
+ submodules : recursive
47
+ fetch-depth : 0
48
+
49
+ - name : Get version from tag
50
+ id : get_version
51
+ run : echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
52
+
53
+ - name : Setup .NET Core
54
+ uses : actions/setup-dotnet@v4
55
+ with :
56
+ dotnet-version : 8.0.x
57
+
58
+ - name : Pack
59
+ run : |
60
+ cd Orleans.Providers.MongoDB
61
+ dotnet pack --configuration Release /p:Version=${{ steps.get_version.outputs.VERSION }}
62
+
63
+ - name : Publish
64
+ run : |
65
+ dotnet nuget push **/*.nupkg --source 'https://api.nuget.org/v3/index.json' --skip-duplicate -k ${{ secrets.nuget }}
You can’t perform that action at this time.
0 commit comments