You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2022/12/10 14:49:01 UTC
[shardingsphere] branch master updated: Add : add back the example upload since the permission has been granted by apache infra team(#22757) (#22792)
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 <ta...@126.com>
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/rsync-deployments@5.2
+ 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 }}