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 6af7dcef794 Refactor : upload the generated examples to Apache 
nightlies(#22695) (#22710)
6af7dcef794 is described below

commit 6af7dcef794bc9a5180d718c074b1a7f11bb6068
Author: 孙念君 Nianjun Sun <[email protected]>
AuthorDate: Wed Dec 7 13:24:25 2022 +0800

    Refactor : upload the generated examples to Apache nightlies(#22695) 
(#22710)
---
 .../{nightly-build.yml => nightly-artifact-build.yml}      |  0
 .github/workflows/nightly-e2e.yml                          |  2 +-
 ...e2e-example-generator.yml => nightly-example-build.yml} | 14 ++++++++++++++
 3 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/nightly-build.yml 
b/.github/workflows/nightly-artifact-build.yml
similarity index 100%
rename from .github/workflows/nightly-build.yml
rename to .github/workflows/nightly-artifact-build.yml
diff --git a/.github/workflows/nightly-e2e.yml 
b/.github/workflows/nightly-e2e.yml
index 872105a4073..03fa6776e60 100644
--- a/.github/workflows/nightly-e2e.yml
+++ b/.github/workflows/nightly-e2e.yml
@@ -112,7 +112,7 @@ jobs:
         adapter: [ proxy, jdbc ]
         mode: [ standalone, Cluster ]
         database: [ MySQL, PostgreSQL, openGauss ]
-        scenario: [ db, tbl, encrypt, readwrite_splitting, shadow, 
encrypt_with_data_type ]
+        scenario: [ db, tbl, encrypt, readwrite_splitting, shadow ]
         exclude:
           - adapter: jdbc
             mode: Cluster
diff --git a/.github/workflows/nightly-e2e-example-generator.yml 
b/.github/workflows/nightly-example-build.yml
similarity index 81%
rename from .github/workflows/nightly-e2e-example-generator.yml
rename to .github/workflows/nightly-example-build.yml
index ad8f6bb76ad..5049d2d0e41 100644
--- a/.github/workflows/nightly-e2e-example-generator.yml
+++ b/.github/workflows/nightly-example-build.yml
@@ -46,6 +46,7 @@ jobs:
             ${{ env.REPOSITORY_NAME }}-maven-third-party-
       - name: Build with Maven
         run: ./mvnw -B -T1C -ntp clean install -DskipITs -DskipTests
+
   generate-and-test-examples:
     if: github.repository == 'apache/shardingsphere'
     name: Example-${{ matrix.feature }}-${{ matrix.framework }}-${{ 
matrix.mode }}-${{ matrix.transaction }}
@@ -95,3 +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