-
Notifications
You must be signed in to change notification settings - Fork 0
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
8f52e25
commit 01cc6e7
Showing
24 changed files
with
115 additions
and
1,084 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 |
---|---|---|
|
@@ -9,47 +9,11 @@ jobs: | |
detekt_validation: | ||
needs: gradle_validation | ||
uses: ./.github/workflows/detekt-validation.yml | ||
# tests_validation: | ||
# needs: gradle_validation | ||
# uses: ./.github/workflows/tests-validation.yml | ||
|
||
publish: | ||
name: Build and upload | ||
runs-on: ubuntu-latest | ||
needs: [ gradle_validation, detekt_validation ] | ||
steps: | ||
- name: Checkout Git repo | ||
uses: actions/checkout@v2 | ||
- uses: SebRollen/[email protected] | ||
id: version | ||
with: | ||
file: 'gradle/libs.versions.toml' | ||
field: 'versions.project-version' | ||
- uses: SebRollen/[email protected] | ||
id: name | ||
with: | ||
file: 'gradle/libs.versions.toml' | ||
field: 'versions.project-name' | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: 'adopt' | ||
java-version: 17 | ||
- name: Give gradle permission | ||
run: chmod +x gradlew | ||
- name: Build with Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: shadowJar --stacktrace | ||
- name: Create release | ||
id: create_internal_release | ||
uses: softprops/action-gh-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.actions_token }} | ||
with: | ||
files: | | ||
./jars/${{ steps.name.outputs.value }}-${{ steps.version.outputs.value }}.jar | ||
tag_name: ${{ steps.version.outputs.value }} | ||
name: ${{ steps.name.outputs.value }} - ${{ steps.version.outputs.value }} | ||
draft: false | ||
prerelease: false | ||
tests_validation: | ||
needs: gradle_validation | ||
uses: ./.github/workflows/tests-validation.yml | ||
create_artifact: | ||
needs: [ gradle_validation, detekt_validation, tests_validation ] | ||
uses: ./.github/workflows/create-artifacts.yml | ||
secrets: | ||
ACTIONS_TOKEN: ${{ secrets.ACTIONS_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,21 @@ | ||
name: "detekt-validation" | ||
on: | ||
workflow_call: | ||
jobs: | ||
build: | ||
name: Build project with gradle | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Git repo | ||
uses: actions/checkout@v2 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: 'adopt' | ||
java-version: 17 | ||
- name: Give gradle permission | ||
run: chmod +x gradlew | ||
- name: Build with Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: build --stacktrace |
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: "detekt-validation" | ||
on: | ||
workflow_call: | ||
secrets: | ||
ACTIONS_TOKEN: | ||
required: true | ||
jobs: | ||
publish: | ||
name: Build and upload | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Git repo | ||
uses: actions/checkout@v2 | ||
- uses: christian-draeger/[email protected] | ||
id: properties | ||
with: | ||
path: './gradle.properties' | ||
properties: 'makeevrserg.project.name makeevrserg.project.version.string' | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: 'adopt' | ||
java-version: 17 | ||
- name: Give gradle permission | ||
run: chmod +x gradlew | ||
- name: Build with Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: shadowJar --stacktrace | ||
- name: Create release | ||
id: create_internal_release | ||
uses: softprops/action-gh-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.ACTIONS_TOKEN }} | ||
with: | ||
files: | | ||
./jars/${{ steps.properties.outputs.makeevrserg-project-name }}-${{ steps.properties.outputs.makeevrserg-project-version-string }}.jar | ||
tag_name: ${{ steps.properties.outputs.makeevrserg-project-version-string }} | ||
name: ${{ steps.properties.outputs.makeevrserg-project-name }} - ${{ steps.properties.outputs.makeevrserg-project-version-string }} | ||
draft: false | ||
prerelease: false |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
39 changes: 0 additions & 39 deletions
39
build-logic/plugins/convention/src/main/kotlin/basic-java.gradle.kts
This file was deleted.
Oops, something went wrong.
41 changes: 0 additions & 41 deletions
41
build-logic/plugins/convention/src/main/kotlin/detekt-convention.gradle.kts
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
...ns/convention/src/main/kotlin/ru/astrainteractive/buildlogic/PublishPrimaryVersionTask.kt
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
build-logic/plugins/convention/src/main/kotlin/spigot-resource-processor.gradle.kts
This file was deleted.
Oops, something went wrong.
34 changes: 0 additions & 34 deletions
34
build-logic/plugins/convention/src/main/kotlin/spigot-shadow.gradle.kts
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
build-logic/plugins/convention/src/main/kotlin/versionCatalog.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.