Skip to content

Commit

Permalink
Only publish master-branch packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
mellinoe committed Jan 2, 2022
1 parent 49dbe61 commit 13d5e6b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:

jobs:
build_windows:

runs-on: windows-latest

steps:
Expand All @@ -25,6 +24,12 @@ jobs:
run: dotnet build --no-restore src
- name: Test
run: dotnet test --no-build --verbosity normal src --filter "Backend=D3D11"

publish_windows:
runs-on: windows-latest
needs: build_windows
if: success() && github.ref == 'refs/heads/master'
steps:
- name: Build Packages
run: dotnet pack src -c Release
- name: Publish to MyGet
Expand Down

0 comments on commit 13d5e6b

Please sign in to comment.