From f269973ce7888977936b3af3c09636aa49ec114d Mon Sep 17 00:00:00 2001 From: LoveSy Date: Tue, 16 Nov 2021 16:28:44 +0800 Subject: [PATCH] Dont upload deploy key (#1413) --- .github/workflows/core.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/core.yml b/.github/workflows/core.yml index becc8485..07c60f65 100644 --- a/.github/workflows/core.yml +++ b/.github/workflows/core.yml @@ -137,7 +137,6 @@ jobs: if [ ! -z "${{ secrets.FILES_REPO }}" ]; then cd core/release umask 077 - echo ${{ secrets.FILES_REPO_KEY }} | base64 --decode > deploy REPO=$(echo ${{ secrets.FILES_REPO }} | base64 -d) git init git add -A @@ -145,6 +144,7 @@ jobs: git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" git commit -m "${{ github.sha }}" git tag "files-${{ github.sha }}" + echo ${{ secrets.FILES_REPO_KEY }} | base64 --decode > deploy GIT_SSH_COMMAND="ssh -i ${PWD}/deploy" git push git@github.com:${REPO}.git "files-${{ github.sha }}" for file in $(ls .); do echo "::notice::Download $file from https://cdn.jsdelivr.net/gh/${REPO}@files-${{ github.sha }}/$file"; done fi