Skip to content

Commit 483e8a7

Browse files
committed
chore(deploy.yml): add support for main branch in pull request triggers to ensure consistency in deployment workflows
chore(deploy.yml): include versioning pattern for main branch to enhance version control during deployments
1 parent 59dbd80 commit 483e8a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
pull_request:
99
branches:
1010
- 'master'
11+
- 'main'
1112

1213
jobs:
1314
build-and-publish:
@@ -36,6 +37,7 @@ jobs:
3637
type=semver,pattern={{version}}
3738
type=semver,pattern={{major}}.{{minor}}
3839
type=semver,pattern={{major}}
40+
type=ref,event=branch,prefix=main,suffix=-{{sha}}
3941
4042
- name: Login to GHCR
4143
uses: docker/login-action@v2

0 commit comments

Comments
 (0)