File tree Expand file tree Collapse file tree 2 files changed +4
-13
lines changed
Expand file tree Collapse file tree 2 files changed +4
-13
lines changed Original file line number Diff line number Diff line change 7777 PACKAGE_NEW : ${{ inputs.package }}
7878 INPUT_EMAIL : ${{ inputs.email }}
7979 run : |
80- echo "GITHUB_REPOSITORY_OLD: $GITHUB_REPOSITORY_OLD"
81- echo "GITHUB_REPOSITORY_NAME: $GITHUB_REPOSITORY_NAME"
82- echo "ARTIFACT_GROUP_OLD: $ARTIFACT_GROUP_OLD"
83- echo "ARTIFACT_GROUP_NEW: $ARTIFACT_GROUP_NEW"
84- echo "ARTIFACT_NAME_OLD: $ARTIFACT_NAME_OLD"
85- echo "ARTIFACT_NAME_NEW: $ARTIFACT_NAME_NEW"
86- echo "PACKAGE_OLD: $PACKAGE_OLD"
87- echo "PACKAGE_NEW: $PACKAGE_NEW"
88-
8980 # gradle files
9081 ## gradle.properties - initial version
9182 echo "version=0.0.1-SNAPSHOT" > gradle.properties
@@ -122,9 +113,6 @@ jobs:
122113 #find $ARTIFACT_NAME_NEW -type f -name "*.java" -print0 | xargs -0 sed -i '' -e "s@$PACKAGE_OLD@$PACKAGE_NEW@g"
123114 find $ARTIFACT_NAME_NEW -type f -name "*.java" -exec sed -i'' -e "s@$PACKAGE_OLD@$PACKAGE_NEW@g" {} +
124115
125- # GitHub actions
126- sed -i "s/$ARTIFACT_NAME_OLD/$ARTIFACT_NAME_NEW/g" .github/workflows/callable.publish-javadoc.yml
127-
128116 # README from template
129117 mv -f .github/template/README.md README.md
130118 rm -Rf .github/template/
Original file line number Diff line number Diff line change @@ -34,10 +34,13 @@ jobs:
3434 echo "PUBLISH_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
3535 fi
3636
37+ - name : Conclude library name and set env
38+ run : echo "LIBRARY_NAME=$(grep -o '^rootProject.name.*' settings.gradle.kts | sed -e 's/rootProject.name.*"\(.*\)"/\1/')" >> $GITHUB_ENV
39+
3740 - name : Deploy to GitHub Page 🚀 with Gradle
38413942 with :
4043 branch : gh-pages
4144 clean : true
42- folder : java-library-template /build/docs/javadoc
45+ folder : ${{ env.LIBRARY_NAME }} /build/docs/javadoc
4346 target-folder : javadoc/${{ env.PUBLISH_VERSION }}
You can’t perform that action at this time.
0 commit comments