-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
738c277
commit 5912a4c
Showing
6 changed files
with
204 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# REQUIRES DATAGEN TO BE CALLED IN A JOB BEFORE THIS!! | ||
|
||
name: Publish | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
version: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
publish: | ||
name: Publish Code as Github Package - ${{ inputs.version }} | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin | ||
java-version: 17 | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v4 | ||
|
||
- name: Publish | ||
run: ./gradlew :publish | ||
env: | ||
VERSION: ${{ inputs.version }} | ||
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Continuous Integration | ||
|
||
env: | ||
GH_PKG_URL: "https://maven.pkg.github.com/${{ github.repository }}" | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
paths-ignore: | ||
- "README.md" | ||
- "LICENSE" | ||
- ".github/**/*" | ||
- "**/*.gradle.kts" | ||
- "**/gradle.properties" | ||
|
||
jobs: | ||
vars: | ||
name: Get Variables | ||
runs-on: ubuntu-22.04 | ||
outputs: | ||
version: ${{steps.version.outputs.version}} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 150 | ||
fetch-tags: true | ||
|
||
- name: Version | ||
id: version | ||
uses: paulhatch/[email protected] | ||
with: | ||
version_format: "${major}.${minor}.${patch}" | ||
search_commit_body: true | ||
bump_each_commit: true | ||
|
||
publish: | ||
needs: [vars] | ||
uses: ./.github/workflows/_publish.yml | ||
secrets: inherit | ||
with: | ||
version: ${{ needs.vars.outputs.version }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
val isRelease: Boolean = (System.getenv("RELEASE") ?: "false").equals("true", true) | ||
|
||
plugins { | ||
id("gander-convention") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters