Skip to content

Commit

Permalink
Merge pull request veldrid#422 from mellinoe/github_actions_myget
Browse files Browse the repository at this point in the history
Only publish master-branch packages.
  • Loading branch information
mellinoe authored Jan 2, 2022
2 parents 49dbe61 + 13d5e6b commit b572840
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 b572840

Please sign in to comment.