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: on:
workflow_dispatch: workflow_dispatch:
push: push:
branches: [ "dev", "cleanup" ] branches: [ "main", "dev", "cleanup" ]
tags: tags:
- 'v*.*.*' - 'v*.*.*'
pull_request: pull_request:
@@ -77,7 +77,7 @@ jobs:
publish-release: publish-release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [build, build-windows] 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: permissions:
contents: write contents: write
steps: steps: