-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: PR Title Lint | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- release/** | ||
types: [ opened, edited, reopened ] | ||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: oss-actions/pr-title-lint@v0 | ||
with: | ||
title: ${{ github.event.pull_request.title }} | ||
summary: on | ||
into: ${{ github.base_ref }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
name: Release | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- release/** | ||
paths-ignore: | ||
- .github/** | ||
- CHANGELOG.md | ||
- README.md | ||
- CODEOWNERS | ||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
concurrency: | ||
group: ${{ github.ref_name }} | ||
cancel-in-progress: false | ||
permissions: | ||
contents: write | ||
outputs: | ||
version: ${{ steps.version.outputs.version }} | ||
tag: ${{ steps.version.outputs.tag }} | ||
steps: | ||
- name: Parse commit message | ||
id: parsed | ||
uses: oss-actions/pr-title-lint@v0 | ||
with: | ||
into: ${{ github.ref_name }} | ||
title: ${{ github.event.head_commit.message }} | ||
summary: false | ||
- name: Calculate next version | ||
id: version | ||
uses: oss-actions/auto-version@v0 | ||
with: | ||
token: ${{ github.token }} | ||
refuse_major_increment: ${{ github.ref_name != 'main' }} | ||
increment: ${{ steps.parsed.outputs.increment }} | ||
hard: ${{ steps.parsed.outputs.hard }} | ||
- name: Create tag for version | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
run: | | ||
gh api \ | ||
-X POST \ | ||
-H "Accept: application/vnd.github+json" \ | ||
/repos/${{ github.repository }}/git/refs \ | ||
-f ref='refs/tags/${{ steps.version.outputs.tag }}' \ | ||
-f sha='${{ github.event.head_commit.id }}' && echo '' | ||
echo "::notice title=Versioning::Created tag: ${{ steps.version.outputs.tag }} - https://github.com/${{ github.repository }}/tree/${{ steps.version.outputs.tag }}" | ||
- name: Create release branch for previous version | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
if: steps.version.outputs.branch != 'none' | ||
run: | | ||
gh api \ | ||
-X POST \ | ||
-H "Accept: application/vnd.github+json" \ | ||
/repos/${{ github.repository }}/git/refs \ | ||
-f ref='refs/heads/${{ steps.version.outputs.branch }}' \ | ||
-f sha='${{ steps.version.outputs.branch_sha }}' && echo '' | ||
echo "::notice title=Versioning::Created release branch for previous version: ${{ steps.version.outputs.branch }} - https://github.com/${{ github.repository }}/tree/${{ steps.version.outputs.branch }}" | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: 17 | ||
- name: Publish Gradle Plugin | ||
env: | ||
GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }} | ||
GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }} | ||
VERSION: ${{ steps.version.outputs.version }} | ||
run: ./gradlew :publishPlugin -Dgradle.publish.key=$GRADLE_PUBLISH_KEY -Dgradle.publish.secret=$GRADLE_PUBLISH_SECRET |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
.gradle | ||
build/ | ||
!gradle/wrapper/gradle-wrapper.jar | ||
!**/src/main/**/build/ | ||
!**/src/test/**/build/ | ||
|
||
### IntelliJ IDEA ### | ||
.idea/modules.xml | ||
.idea/jarRepositories.xml | ||
.idea/compiler.xml | ||
.idea/libraries/ | ||
*.iws | ||
*.iml | ||
*.ipr | ||
out/ | ||
!**/src/main/**/out/ | ||
!**/src/test/**/out/ | ||
|
||
### Eclipse ### | ||
.apt_generated | ||
.classpath | ||
.factorypath | ||
.project | ||
.settings | ||
.springBeans | ||
.sts4-cache | ||
bin/ | ||
!**/src/main/**/bin/ | ||
!**/src/test/**/bin/ | ||
|
||
### NetBeans ### | ||
/nbproject/private/ | ||
/nbbuild/ | ||
/dist/ | ||
/nbdist/ | ||
/.nb-gradle/ | ||
|
||
### VS Code ### | ||
.vscode/ | ||
|
||
### Mac OS ### | ||
.DS_Store |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.