From 1d46dc8992e7173392ec049ceecb0acb4b5e4f95 Mon Sep 17 00:00:00 2001 From: Felipe Zorzo Date: Sun, 22 Sep 2024 23:42:56 -0300 Subject: [PATCH] build: Publish a zip file with the plsql-custom-rules example --- .github/workflows/build.yml | 3 +++ build.gradle.kts | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0bc3fccf..7567be14 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -109,6 +109,9 @@ jobs: with: name: build-artifacts + - name: Generate plsql-custom-rules archive + run: git archive --format=zip -o build/plsql-custom-rules.zip HEAD:plsql-custom-rules + - if: github.ref == 'refs/heads/main' name: Run SonarQube Scanner run: ./gradlew sonar --info diff --git a/build.gradle.kts b/build.gradle.kts index f4e59131..d225a143 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -208,6 +208,11 @@ jreleaser { } } } + create("plsql-custom-rules") { + artifact { + path.set(file("build/{{distributionName}}.zip")) + } + } } }