Skip to content

Commit a680fbe

Browse files
committed
Fixes to workflow
1 parent 7d6261f commit a680fbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,14 +223,14 @@ jobs:
223223
dotnet-version: '5.0.x'
224224

225225
- name: Creating library package for pre-release
226-
if: github.event_name != 'release'
226+
if: github.ref != 'refs/heads/main'
227227
run: |
228228
dotnet pack -c Release -o ${GITHUB_WORKSPACE}/packages -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true
229229
dotnet pack src/bunit/ -c Release -o ${GITHUB_WORKSPACE}/packages -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true
230230
dotnet pack src/bunit.template/ -c Release -o ${GITHUB_WORKSPACE}/packages -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true
231231
232232
- name: Creating library package for release
233-
if: github.event_name == 'release'
233+
if: github.ref == 'refs/heads/main'
234234
run: |
235235
dotnet pack -c Release -o ${GITHUB_WORKSPACE}/packages -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true /p:PublicRelease=true
236236
dotnet pack src/bunit/ -c Release -o ${GITHUB_WORKSPACE}/packages -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true /p:PublicRelease=true

0 commit comments

Comments
 (0)