From 34e15d3bfb8827def476332d0b517c34d970dcf0 Mon Sep 17 00:00:00 2001 From: HuangWei Date: Fri, 22 Sep 2023 04:07:37 +0000 Subject: [PATCH] build: add workflow for release mirror --- .github/workflows/release-mirror.yml | 37 ++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/release-mirror.yml diff --git a/.github/workflows/release-mirror.yml b/.github/workflows/release-mirror.yml new file mode 100644 index 00000000000..ad1273b7145 --- /dev/null +++ b/.github/workflows/release-mirror.yml @@ -0,0 +1,37 @@ +# This workflow scp the specified version release files to the match of mirror site +name: Release Mirror + +on: + workflow_dispatch: + +inputs: + version: + description: 'release version' + required: false + +jobs: + cp: + runs-on: ubuntu-latest + steps: + # ssh actions have limitations, so we use raw ssh + - name: Configure SSH + run: | + mkdir -p ~/.ssh/ + echo "$SSH_KEY" > ~/.ssh/staging.key + chmod 600 ~/.ssh/staging.key + cat >>~/.ssh/config <