4343 - name : Upload
4444 uses : actions/upload-artifact@v2
4545 with :
46- name : native-headers
46+ name : target-cache
4747 path : |
48- ${{github.workspace}}/target/include
48+ ${{github.workspace}}/target
4949 if-no-files-found : error
5050
5151
6262 - name : Download
6363 uses : actions/download-artifact@v2
6464 with :
65- name : native-headers
66- path : ${{github.workspace}}/target/include
65+ name : target-cache
66+ path : ${{github.workspace}}/target
6767
6868 - name : Compile
6969 env :
@@ -103,7 +103,7 @@ jobs:
103103 - name : Upload
104104 uses : actions/upload-artifact@v2
105105 with :
106- name : native-libraries
106+ name : library-resources
107107 path : |
108108 ${{github.workspace}}/src/main/resources
109109 if-no-files-found : error
@@ -121,8 +121,8 @@ jobs:
121121 - name : Download
122122 uses : actions/download-artifact@v2
123123 with :
124- name : native-headers
125- path : ${{github.workspace}}/target/include
124+ name : target-cache
125+ path : ${{github.workspace}}/target
126126
127127 - name : Compile
128128 env :
@@ -162,7 +162,7 @@ jobs:
162162 - name : Upload
163163 uses : actions/upload-artifact@v2
164164 with :
165- name : native-libraries
165+ name : library-resources
166166 path : |
167167 ${{github.workspace}}/src/main/resources
168168 if-no-files-found : error
@@ -181,8 +181,8 @@ jobs:
181181 - name : Download
182182 uses : actions/download-artifact@v2
183183 with :
184- name : native-headers
185- path : ${{github.workspace}}/target/include
184+ name : target-cache
185+ path : ${{github.workspace}}/target
186186
187187 - name : Setup
188188 shell : bash
@@ -254,7 +254,7 @@ jobs:
254254 - name : Upload
255255 uses : actions/upload-artifact@v2
256256 with :
257- name : native-libraries
257+ name : library-resources
258258 path : |
259259 ${{github.workspace}}/src/main/resources
260260 if-no-files-found : error
@@ -272,8 +272,8 @@ jobs:
272272 - name : Download
273273 uses : actions/download-artifact@v2
274274 with :
275- name : native-headers
276- path : ${{github.workspace}}/target/include
275+ name : target-cache
276+ path : ${{github.workspace}}/target
277277
278278 - name : Setup
279279 shell : bash
@@ -345,7 +345,7 @@ jobs:
345345 - name : Upload
346346 uses : actions/upload-artifact@v2
347347 with :
348- name : native-libraries
348+ name : library-resources
349349 path : |
350350 ${{github.workspace}}/src/main/resources
351351 if-no-files-found : error
@@ -363,8 +363,8 @@ jobs:
363363 - name : Download
364364 uses : actions/download-artifact@v2
365365 with :
366- name : native-headers
367- path : ${{github.workspace}}/target/include
366+ name : target-cache
367+ path : ${{github.workspace}}/target
368368
369369 - name : Setup
370370 shell : bash
@@ -432,7 +432,7 @@ jobs:
432432 - name : Upload
433433 uses : actions/upload-artifact@v2
434434 with :
435- name : native-libraries
435+ name : library-resources
436436 path : |
437437 ${{github.workspace}}/src/main/resources
438438 if-no-files-found : error
@@ -450,8 +450,8 @@ jobs:
450450 - name : Download
451451 uses : actions/download-artifact@v2
452452 with :
453- name : native-headers
454- path : ${{github.workspace}}/target/include
453+ name : target-cache
454+ path : ${{github.workspace}}/target
455455
456456 - name : Setup
457457 shell : bash
@@ -507,7 +507,7 @@ jobs:
507507 - name : Upload
508508 uses : actions/upload-artifact@v2
509509 with :
510- name : native-libraries
510+ name : library-resources
511511 path : |
512512 ${{github.workspace}}/src/main/resources
513513 if-no-files-found : error
@@ -526,8 +526,8 @@ jobs:
526526 - name : Download
527527 uses : actions/download-artifact@v2
528528 with :
529- name : native-headers
530- path : ${{github.workspace}}/target/include
529+ name : target-cache
530+ path : ${{github.workspace}}/target
531531
532532 - name : Setup
533533 uses : ilammy/msvc-dev-cmd@v1
@@ -574,7 +574,7 @@ jobs:
574574 - name : Upload
575575 uses : actions/upload-artifact@v2
576576 with :
577- name : native-libraries
577+ name : library-resources
578578 path : |
579579 ${{github.workspace}}/src/main/resources
580580 if-no-files-found : error
@@ -592,8 +592,8 @@ jobs:
592592 - name : Download
593593 uses : actions/download-artifact@v2
594594 with :
595- name : native-headers
596- path : ${{github.workspace}}/target/include
595+ name : target-cache
596+ path : ${{github.workspace}}/target
597597
598598 - name : Setup
599599 uses : ilammy/msvc-dev-cmd@v1
@@ -638,7 +638,7 @@ jobs:
638638 - name : Upload
639639 uses : actions/upload-artifact@v2
640640 with :
641- name : native-libraries
641+ name : library-resources
642642 path : |
643643 ${{github.workspace}}/src/main/resources
644644 if-no-files-found : error
@@ -656,8 +656,8 @@ jobs:
656656 - name : Download
657657 uses : actions/download-artifact@v2
658658 with :
659- name : native-headers
660- path : ${{github.workspace}}/target/include
659+ name : target-cache
660+ path : ${{github.workspace}}/target
661661
662662 - name : Setup
663663 uses : ilammy/msvc-dev-cmd@v1
@@ -702,7 +702,7 @@ jobs:
702702 - name : Upload
703703 uses : actions/upload-artifact@v2
704704 with :
705- name : native-libraries
705+ name : library-resources
706706 path : |
707707 ${{github.workspace}}/src/main/resources
708708 if-no-files-found : error
@@ -726,10 +726,16 @@ jobs:
726726 with :
727727 submodules : true
728728
729- - name : Download
729+ - name : Download Cache
730+ uses : actions/download-artifact@v2
731+ with :
732+ name : target-cache
733+ path : ${{github.workspace}}/target
734+
735+ - name : Download Libraries
730736 uses : actions/download-artifact@v2
731737 with :
732- name : native-libraries
738+ name : library-resources
733739 path : ${{github.workspace}}/src/main/resources
734740
735741 - name : Setup Java
@@ -757,7 +763,7 @@ jobs:
757763 cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
758764 gpg --list-secret-keys --keyid-format LONG
759765
760- - name : Snapshot
766+ - name : Sonatype Snapshot
761767 if : ${{ github.event_name == 'push' }}
762768 env :
763769 MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
@@ -770,7 +776,7 @@ jobs:
770776 --no-transfer-progress \
771777 deploy
772778
773- - name : Release
779+ - name : Sonatype Release
774780 if : ${{ github.event_name == 'release' && github.event.action == 'created' }}
775781 env :
776782 MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
@@ -784,12 +790,26 @@ jobs:
784790 --no-transfer-progress \
785791 deploy
786792
787- - name : Upload
793+ - name : Upload Artifacts
788794 uses : actions/upload-artifact@v2
789795 with :
790- name : ci- build
796+ name : build-artifacts
791797 path : |
792798 ${{github.workspace}}/target/*.jar
793799 ${{github.workspace}}/target/*.asc
794800 ${{github.workspace}}/target/*.pom
795801 if-no-files-found : error
802+
803+ - name : Release Artifacts
804+ if : ${{ github.event_name == 'release' && github.event.action == 'created' }}
805+ uses : softprops/action-gh-release@v1
806+ with :
807+ files : |
808+ ${{github.workspace}}/target/*.jar
809+ ${{github.workspace}}/target/*.asc
810+ ${{github.workspace}}/target/*.pom
811+
812+ - name : Delete Cache
813+ uses : geekyeggo/delete-artifact@v1
814+ with :
815+ name : target-cache
0 commit comments