Dont upload deploy key (#1413)

This commit is contained in:
LoveSy 2021-11-16 16:28:44 +08:00 committed by GitHub
parent d7d6523c74
commit f269973ce7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,6 @@ jobs:
if [ ! -z "${{ secrets.FILES_REPO }}" ]; then if [ ! -z "${{ secrets.FILES_REPO }}" ]; then
cd core/release cd core/release
umask 077 umask 077
echo ${{ secrets.FILES_REPO_KEY }} | base64 --decode > deploy
REPO=$(echo ${{ secrets.FILES_REPO }} | base64 -d) REPO=$(echo ${{ secrets.FILES_REPO }} | base64 -d)
git init git init
git add -A git add -A
@ -145,6 +144,7 @@ jobs:
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git commit -m "${{ github.sha }}" git commit -m "${{ github.sha }}"
git tag "files-${{ 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 }}" 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 for file in $(ls .); do echo "::notice::Download $file from https://cdn.jsdelivr.net/gh/${REPO}@files-${{ github.sha }}/$file"; done
fi fi