File tree Expand file tree Collapse file tree 2 files changed +28
-4
lines changed Expand file tree Collapse file tree 2 files changed +28
-4
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,23 @@ name: NuGet Publish
2
2
3
3
on :
4
4
push :
5
- branches :
6
- - main
5
+ tags :
6
+ - " v*.*.* "
7
7
8
8
jobs :
9
+ wait-for-release :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : Wait for Release workflow
13
+ uses : lewagon/wait-on-check-action@v1.3.1
14
+ with :
15
+ ref : ${{ github.ref }}
16
+ check-name : ' create-release'
17
+ repo-token : ${{ secrets.GITHUB_TOKEN }}
18
+ wait-interval : 10
19
+
9
20
publish-nuget :
21
+ needs : wait-for-release
10
22
runs-on : ubuntu-latest
11
23
steps :
12
24
- name : Checkout code
20
32
dotnet build --configuration Release
21
33
dotnet pack --configuration Release --no-build
22
34
dotnet nuget push **/*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json --skip-duplicate
23
-
35
+
Original file line number Diff line number Diff line change 6
6
- " v*.*.*"
7
7
8
8
jobs :
9
- build :
9
+ wait-for-dotnet :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : Wait for .NET workflow
13
+ uses : lewagon/wait-on-check-action@v1.3.1
14
+ with :
15
+ ref : ${{ github.ref }}
16
+ check-name : ' build'
17
+ repo-token : ${{ secrets.GITHUB_TOKEN }}
18
+ wait-interval : 10
19
+
20
+ create-release :
21
+ needs : wait-for-dotnet
10
22
runs-on : ubuntu-latest
11
23
steps :
12
24
- name : GH Release
You can’t perform that action at this time.
0 commit comments