Skip to content

Commit 4d8d3d2

Browse files
Support main as main branch
1 parent 7daefe0 commit 4d8d3d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/dotnet.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Build CodeConverter
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [ master, main ]
66
pull_request:
7-
branches: [ master ]
7+
branches: [ master, main ]
88

99
env:
1010
BuildVersion: '10.0.0'
@@ -78,7 +78,7 @@ jobs:
7878
path: Func/bin/${{ env.BuildTarget }}/publish/
7979

8080
deploy:
81-
if: ${{ github.ref == 'refs/heads/master' }}
81+
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' }}
8282
concurrency: ci-${{ github.ref }}
8383
needs: [build] # The second job must depend on the first one to complete before running and uses ubuntu-latest instead of windows.
8484
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)