Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
testersen committed Jan 13, 2024
0 parents commit 68b2d52
Show file tree
Hide file tree
Showing 28 changed files with 1,223 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/pr-title-lint.yml
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 }}
76 changes: 76 additions & 0 deletions .github/workflows/release.yml
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
42 changes: 42 additions & 0 deletions .gitignore
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
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

124 changes: 124 additions & 0 deletions .idea/uiDesigner.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 68b2d52

Please sign in to comment.