We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 521e669 + 16b78ad commit 0494b45Copy full SHA for 0494b45
.github/workflows/build-and-publish.yml
@@ -2,13 +2,15 @@ name: Build and Publish
2
3
on:
4
push:
5
- branches: [main, support/2.x.x]
+ branches: [main]
6
paths-ignore:
7
- '.gradle/wrapper'
8
- '.gitignore'
9
- 'LICENSE'
10
- 'THIRD PARTY NOTICES'
11
- '*.md'
12
+ tags:
13
+ - "v[0-9]+.[0-9]+.[0-9]+"
14
env:
15
PREVIEW_TASK: publishSnapshotPublicationToSonatypeSnapshotRepository
16
PUBLISH_TASK: publishMavenCentralReleasePublicationToSonatypeRepository
@@ -47,7 +49,7 @@ jobs:
47
49
run: ./gradlew $PREVIEW_TASK
48
50
51
maven_Release:
- if: ${{ github.ref == 'refs/heads/main' }}
52
+ if: startsWith(github.ref, 'refs/tags/')
53
environment:
54
name: maven_central_release
55
runs-on: ubuntu-latest
0 commit comments