Skip to content

Commit

Permalink
chore: setup release process
Browse files Browse the repository at this point in the history
  • Loading branch information
benny123tw committed Jun 19, 2024
1 parent c88e9cc commit da20900
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 30 deletions.
34 changes: 34 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!-- ☝️ PR title should follow conventional commits (https://conventionalcommits.org) -->
<!-- Thanks for taking the time to write this Pull Request! ❤️ -->

### ❓ Type of change

<!-- What types of changes does your code introduce? Put an `x` in all the boxes that apply. -->

- [ ] 📖 Documentation (updates to the documentation, readme or JSdoc annotations)
- [ ] 🐞 Bug fix (a non-breaking change that fixes an issue)
- [ ] 👌 Enhancement (improving an existing functionality like performance)
- [ ] ✨ New feature (a non-breaking change that adds functionality)
- [ ] 🧹 Chore (updates to the build process or auxiliary tools and libraries)
- [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

### 📚 Description, Motivation and Context

<!-- Describe your changes in detail -->
<!-- Why is this change required? What problem does it solve? -->
<!-- If it resolves an open issue, please link to the issue here. For example "Resolves #1337" -->

### 🧪 How Has This Been Tested?

<!-- Please describe in detail how you tested your changes. -->
<!-- Include details of your testing environment, tests ran to see how -->
<!-- your change affects other areas of the code, etc. -->

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->
<!-- If your change requires a documentation PR, please link it appropriately -->
<!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->

- [ ] I have linked an issue or discussion.
- [ ] I have updated the documentation accordingly.
29 changes: 3 additions & 26 deletions .github/workflows/1.pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "> Main Pipeline"
name: "Main Pipeline"

on:
push:
Expand All @@ -7,18 +7,6 @@ on:
- '*'
pull_request:
branches: [ '*' ]
# workflow_dispatch:
# inputs:
# type:
# description: 'Release Library'
# required: true
# default: '...no release'
# type: choice
# options:
# - '...no release'
# - major
# - minor
# - patch

jobs:

Expand All @@ -30,7 +18,7 @@ jobs:
name: Build + unit tests
uses: ./.github/workflows/callable.build.yml
if: | # avoid unnecessary pipeline runs during artifact release process ('gradle release plugin')
!contains(github.event.head_commit.message, '[Gradle Release Plugin] - pre tag commit')
!contains(github.event.head_commit.message, 'chore: release v')
|| github.ref_type == 'tag'
code_analysis:
Expand All @@ -50,17 +38,6 @@ jobs:
# uses: ./.github/workflows/callable.integration-test.yml
# needs: build

# gradle_release:
# name: Create release
# uses: ./.github/workflows/callable.gradle-release.yml
# secrets: inherit
# with:
# type: ${{ inputs.type }}
# needs: build
# if: |
# github.event_name == 'workflow_dispatch'
# && inputs.type != '...no release'

publish_central_portal:
name: Publish artifact (Maven Central)
uses: ./.github/workflows/callable.publish-central-portal.yml
Expand All @@ -80,7 +57,7 @@ jobs:
permissions:
contents: write
uses: ./.github/workflows/callable.publish-dokka.yml
needs: build
needs: [build, publish_central_portal]
if: |
(
github.ref == 'refs/heads/main'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/2.scheduled.code-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ">> Scheduled Code Analysis"
name: "Scheduled Code Analysis"

on:
workflow_dispatch:
Expand Down
5 changes: 2 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
# JRE 8
jre8_springframework = "5.3.15"
jre8_springframework_boot = "2.6.3"
jre8_spring_dependency_management = "1.0.11.RELEASE"
jre8_jackson_core = "2.13.0"
jre8_javax_servlet = "4.0.1"
jre8_javax_servlet_jsp = "2.3.3"

# JRE 17
dokka = "1.9.20"
springframework = "6.1.8"
springframework_boot = "3.3.0"
spring_dependency_management = "1.1.5"
Expand All @@ -18,7 +18,6 @@ junit = "5.10.2"
assertj = "3.26.0"
testcontainers = "1.19.8"
publish_maven_plugin = "0.28.0"
dokka = "1.9.20"

[libraries]
# JRE 8
Expand All @@ -32,6 +31,7 @@ jre8_jackson_databind = { module = "com.fasterxml.jackson.core:jackson-databind"
jre8_javax_servlet = { module = "javax.servlet:javax.servlet-api", version.ref = "jre8_javax_servlet" }
jre8_javax_servlet_jsp = { module = "javax.servlet.jsp:javax.servlet.jsp-api", version.ref = "jre8_javax_servlet_jsp" }

# JRE 17
junit = { module = "org.junit.jupiter:junit-jupiter", version.ref = "junit" }
junit_bom = { module = "org.junit:junit-bom", version.ref = "junit" }
assertj = { module = "org.assertj:assertj-core", version.ref = "assertj" }
Expand All @@ -55,4 +55,3 @@ spring_boot = { id = "org.springframework.boot", version.ref = "springframework_
spring_dependency_management = { id = "io.spring.dependency-management", version.ref = "spring_dependency_management" }
publish_maven = { id = "com.vanniktech.maven.publish", version.ref = "publish_maven_plugin" }
dokka = { id = "org.jetbrains.dokka", version.ref = "dokka" }

0 comments on commit da20900

Please sign in to comment.