Skip to content

Commit

Permalink
fixed conditional jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegZee committed Feb 23, 2024
1 parent a1d299a commit c4e3498
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@

name: .NET

on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]
tags:
- 'v*'

jobs:
build:

on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]
runs-on: ubuntu-latest

steps:
Expand All @@ -24,11 +26,8 @@ jobs:

publish:

on:
tags:
- 'v*'

runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')

steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit c4e3498

Please sign in to comment.