Skip to content

Commit

Permalink
ci: update trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
phnx47 committed Jul 14, 2022
1 parent 88249eb commit e78d6b6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ on:
push:
branches:
- "main"
tags:
- "v*"
pull_request:
branches:
- "main"
workflow_dispatch:

jobs:
build:
Expand Down Expand Up @@ -45,7 +48,7 @@ jobs:

github:
name: 🚀 Deploy to GitHub
needs: [ build ]
needs: [build]
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-20.04
steps:
Expand All @@ -57,7 +60,7 @@ jobs:
run: dotnet nuget push "*.nupkg" -s https://nuget.pkg.github.com/phnx47/index.json -k ${{ secrets.GH_PKG_PAT }} --skip-duplicate
nuget:
name: 🚀 Deploy to Nuget
needs: [ build ]
needs: [build]
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-20.04
steps:
Expand Down

0 comments on commit e78d6b6

Please sign in to comment.