Skip to content

Commit 3ed6c7c

Browse files
committed
Move release artifact upload to release job
1 parent c4f67da commit 3ed6c7c

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ jobs:
4444
name: NHtmlUnit.nupkg
4545
path: '*.nupkg'
4646

47-
publish:
47+
release:
4848
runs-on: ubuntu-latest
4949
needs: build
50+
if: startsWith(github.ref, 'refs/tags/') # Only release tagged commits
5051

5152
steps:
5253
- uses: actions/download-artifact@v2
@@ -59,6 +60,15 @@ jobs:
5960
token: ${{ secrets.GITHUB_TOKEN }}
6061
files: '*.nupgk'
6162

63+
publish:
64+
runs-on: ubuntu-latest
65+
needs: build
66+
67+
steps:
68+
- uses: actions/download-artifact@v2
69+
with:
70+
name: NHtmlUnit.nupkg
71+
6272
- uses: NuGet/setup-nuget@v1.0.5
6373

6474
- name: Publish To NuGet.org

0 commit comments

Comments
 (0)