You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ch...@apache.org on 2022/03/15 14:40:42 UTC
[flink] 03/03: Add alias support
This is an automated email from the ASF dual-hosted git repository.
chesnay pushed a commit to branch experiment_gha_docs
in repository https://gitbox.apache.org/repos/asf/flink.git
commit 633ebaa3d011fd65060e0752fc29d5145d8facc5
Author: Chesnay Schepler <ch...@apache.org>
AuthorDate: Tue Mar 15 15:39:57 2022 +0100
Add alias support
---
.github/workflows/docs.yml | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index e01d35e..b15393f 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -27,6 +27,13 @@ jobs:
currentBranch=$(git branch --show-current)
echo "flink_branch=${currentBranch}" >> ${GITHUB_ENV}
+ echo "flink_alias=supertest" >> ${GITHUB_ENV}
+
+ if [ "${currentBranch} = "master" ]; then
+ echo "flink_alias=release-1.15" >> ${GITHUB_ENV}
+ elif [ "${currentBranch} = "release-1.14" ]; then
+ echo "flink_alias=stable" >> ${GITHUB_ENV}
+ fi
- name: Build docker image
run: |
docker build -t docs docs/docker
@@ -42,4 +49,15 @@ jobs:
remote_host: ${{ secrets.NIGHTLIES_RSYNC_HOST }}
remote_port: ${{ secrets.NIGHTLIES_RSYNC_PORT }}
remote_user: ${{ secrets.NIGHTLIES_RSYNC_USER }}
- remote_key: ${{ secrets.NIGHTLIES_RSYNC_KEY }}
\ No newline at end of file
+ remote_key: ${{ secrets.NIGHTLIES_RSYNC_KEY }}
+ - name: Upload documentation alias
+ if: env.flink_alias != ""
+ uses: burnett01/rsync-deployments@5.2
+ with:
+ switches: --archive --verbose --compress
+ path: docs/target/
+ remote_path: ${{ secrets.NIGHTLIES_RSYNC_PATH }}/flink/testing-flink-docs-${{ env.flink_alias }}/
+ remote_host: ${{ secrets.NIGHTLIES_RSYNC_HOST }}
+ remote_port: ${{ secrets.NIGHTLIES_RSYNC_PORT }}
+ remote_user: ${{ secrets.NIGHTLIES_RSYNC_USER }}
+ remote_key: ${{ secrets.NIGHTLIES_RSYNC_KEY }}