This is an automated email from the ASF dual-hosted git repository.

zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new f545f802c49 Add : add back the example upload since the permission has 
been granted by apache infra team(#22757) (#22792)
f545f802c49 is described below

commit f545f802c49c91cd7f0ce0f37827ee6e1a8ce58c
Author: 孙念君 Nianjun Sun <[email protected]>
AuthorDate: Sat Dec 10 22:48:55 2022 +0800

    Add : add back the example upload since the permission has been granted by 
apache infra team(#22757) (#22792)
---
 .github/workflows/nightly-build-example.yml | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/nightly-build-example.yml 
b/.github/workflows/nightly-build-example.yml
index 1fbc0851dbb..5049d2d0e41 100644
--- a/.github/workflows/nightly-build-example.yml
+++ b/.github/workflows/nightly-build-example.yml
@@ -96,4 +96,16 @@ jobs:
         run: ./mvnw -B clean install -f 
examples/shardingsphere-example-generator/pom.xml -Pexample-generator 
-Dproducts=${{ matrix.product }} -Dmodes=${{ matrix.mode }} -Dtransactions=${{ 
matrix.transaction }} -Dfeatures=${{ matrix.feature }} -Dframeworks=${{ 
matrix.framework }}
       - name: Test examples
         run : ./mvnw -B test -f 
examples/shardingsphere-example-generator/target/generated-sources/shardingsphere-jdbc-sample/${{
 matrix.feature }}--${{ matrix.framework }}--${{ matrix.mode }}--${{ 
matrix.transaction }}/pom.xml -Pexample-generator 
-Dexec.cleanupDaemonThreads=false 
-
+      - name: Package examples
+        run: |
+          cd 
examples/shardingsphere-example-generator/target/generated-sources/shardingsphere-jdbc-sample/
+          tar -czvf ${{ matrix.feature }}--${{ matrix.framework }}--${{ 
matrix.mode }}--${{ matrix.transaction }}.tar.gz ${{ matrix.feature }}--${{ 
matrix.framework }}--${{ matrix.mode }}--${{ matrix.transaction }}
+      - uses: burnett01/[email protected]
+        with:
+          switches: -avzr
+          path: 
examples/shardingsphere-example-generator/target/generated-sources/shardingsphere-jdbc-sample/${{
 matrix.feature }}--${{ matrix.framework }}--${{ matrix.mode }}--${{ 
matrix.transaction }}.tar.gz
+          remote_path: ${{ secrets.NIGHTLIES_RSYNC_PATH 
}}/shardingsphere/examples
+          remote_host: ${{ secrets.NIGHTLIES_RSYNC_HOST }}
+          remote_port: ${{ secrets.NIGHTLIES_RSYNC_PORT }}
+          remote_user: ${{ secrets.NIGHTLIES_RSYNC_USER }}
+          remote_key: ${{ secrets.NIGHTLIES_RSYNC_KEY }}

Reply via email to