Update branches to include 'main' for workflow triggers

This commit is contained in:
2025-12-08 00:11:32 +00:00
committed by GitHub
parent a360dc708e
commit 7af3fb558b

View File

@@ -3,7 +3,7 @@ name: Java CI with Maven
on:
workflow_dispatch:
push:
branches: [ "dev", "cleanup" ]
branches: [ "main", "dev", "cleanup" ]
tags:
- 'v*.*.*'
pull_request:
@@ -77,7 +77,7 @@ jobs:
publish-release:
runs-on: ubuntu-latest
needs: [build, build-windows]
if: startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch'
if: startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/main'
permissions:
contents: write
steps: