Skip to content

Commit

Permalink
switch to combining parts of the component's description using the ce…
Browse files Browse the repository at this point in the history
…ntral documentations code
  • Loading branch information
slu-it committed Aug 8, 2024
1 parent eae9181 commit a335566
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 199 deletions.
32 changes: 7 additions & 25 deletions .github/workflows/master-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,35 +29,17 @@ jobs:
- name: "Build"
shell: bash
run: './gradlew --no-daemon build'
- name: "Upload Application Description"
- name: "Upload Architecture Documentation Parts"
uses: actions/upload-artifact@v4
with:
name: application-description
path: build/documentation/json/order-service.json
name: architecture-documentation-parts
path: build/architecture-documentation/**
update-documentation:
needs: build
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4
with:
repository: automatic-architecture-documentation/documentation
token: ${{ secrets.DOCUMENTATION_WRITE_TOKEN }}
- name: "Download Application Description"
uses: actions/download-artifact@v4
- name: "Update Component"
uses: automatic-architecture-documentation/documentation/.github/actions/update-component@master
with:
name: application-description
path: tmp
- name: "Replace Current JSON"
shell: bash
run: cp -f tmp/order-service.json .build/src/json/components/order-service.json
- name: "Commit & Push Changes"
shell: bash
run: |
git config --global user.name "Botty"
git config --global user.email "[email protected]"
git add .build/src/json/components/order-service.json
git diff --quiet --exit-code --cached || {
git commit -m "updated order-service.json"
git push origin HEAD:master
}
component-id: order-service
github-token: ${{ secrets.DOCUMENTATION_WRITE_TOKEN }}
18 changes: 0 additions & 18 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import documentation.generateApplicationDescription
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES

Expand Down Expand Up @@ -50,20 +49,3 @@ tasks.withType<KotlinCompile> {
tasks.withType<Test> {
useJUnitPlatform()
}

tasks.register("generateApplicationDescription") {
val sourceFolder = File(project.rootDir, "build/architecture-documentation")
val targetFolder = File(project.rootDir, "build/documentation/json")

inputs.dir(sourceFolder)
outputs.dir(targetFolder)

dependsOn("test")
doLast {
generateApplicationDescription(sourceFolder, targetFolder, "order-service")
}
}

tasks.build {
dependsOn("generateApplicationDescription")
}
12 changes: 0 additions & 12 deletions buildSrc/build.gradle.kts

This file was deleted.

55 changes: 0 additions & 55 deletions buildSrc/src/main/kotlin/documentation/model/model.kt

This file was deleted.

89 changes: 0 additions & 89 deletions buildSrc/src/main/kotlin/documentation/tasks.kt

This file was deleted.

0 comments on commit a335566

Please sign in to comment.