Publish all plugin JARs including the DuneKits companion
This commit is contained in:
parent
f100733dd2
commit
2e0df25736
1 changed files with 7 additions and 5 deletions
|
|
@ -2,7 +2,7 @@ name: DuneRealms Plugin CI
|
|||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: [main, ci/plugin-build]
|
||||
branches: [main]
|
||||
paths:
|
||||
- '.forgejo/workflows/plugins.yml'
|
||||
- 'Dune*/**'
|
||||
|
|
@ -37,10 +37,12 @@ jobs:
|
|||
mkdir -p plugin-artifacts
|
||||
for module in "${modules[@]}"; do
|
||||
gradle --no-daemon -p "$module" test jar
|
||||
jars=("$module"/build/libs/*.jar)
|
||||
test "${#jars[@]}" -eq 1
|
||||
test -f "${jars[0]}"
|
||||
cp "${jars[0]}" "plugin-artifacts/$module.jar"
|
||||
for jar in "$module"/build/libs/*.jar; do
|
||||
test -f "$jar"
|
||||
artifact="plugin-artifacts/${jar##*/}"
|
||||
test ! -e "$artifact"
|
||||
cp "$jar" "$artifact"
|
||||
done
|
||||
done
|
||||
printf '%s\n' "$(git rev-parse HEAD)" > plugin-artifacts/SOURCE_COMMIT
|
||||
(cd plugin-artifacts && sha256sum -- *.jar SOURCE_COMMIT > SHA256SUMS)
|
||||
|
|
|
|||
Loading…
Reference in a new issue

Staff