Skip to content

Commit f1cac5d

Browse files
Teste
1 parent 5082ae3 commit f1cac5d

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,19 @@ jobs:
5454
- name: Create Zip and Pom Artifact
5555
run: |
5656
filenameZip=$(find . -name "grails-*.zip" | head -1)
57-
printenv $filenameZip
58-
57+
filenameZip=$(basename $filenameZip)
58+
pluginZip=${filenameZip:7}
59+
mv $filenameZip $pluginZip
60+
sha1sum $pluginZip | cut -d " " -f 1 >> $pluginZip.sha1
61+
name=${pluginZip/.zip/}
62+
version="${name#*-}"
63+
filenamePom=$(find . -name "pom.xml" | head -1)
64+
mv $filenamePom ./tomcat-${version}.pom
65+
filenamePom=$(basename $filenamePom)
66+
sha1sum tomcat-${version}.pom | cut -d " " -f 1 >> tomcat-${version}.pom.sha1
67+
mkdir -p ./plugin-artifacts
68+
mv tomcat-* ./plugin-artifacts/.
69+
5970
- uses: actions/upload-artifact@v1
6071
with:
6172
name: plugin-artifacts

0 commit comments

Comments
 (0)