1
0
Fork 0
mirror of https://github.com/NeoCloud/NeoNetwork synced 2024-11-14 12:42:24 +08:00

Regular update: 2020-07-26T11:30:54Z

This commit is contained in:
Septs 2020-07-26 19:30:54 +08:00
parent bc05c825d6
commit 4573aeab73
2 changed files with 1 additions and 13 deletions

View file

@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
ssh-key: ${{ secrets.DEPLOY_KEY }}
repository: NeoCloud/NeoNetwork-ROA
path: generated
@ -31,5 +31,3 @@ jobs:
- run: .scripts/generate-roa.sh
- run: .scripts/push-to-roa.sh
env:
SSHPRIVKEY: ${{ secrets.KEY }}

View file

@ -2,20 +2,10 @@
set -euo pipefail
IFS=$'\n\t'
if [ -z "$SSHPRIVKEY" ]; then
echo SSHPRIVKEY is not set
exit 1
fi
mkdir -p "$HOME/.ssh"
echo "$SSHPRIVKEY" | base64 -d >"$HOME/.ssh/id_ed25519"
chmod 0600 "$HOME/.ssh/id_ed25519"
set -x
cd generated || exit 1
git remote set-url origin git@github.com:NeoCloud/NeoNetwork-ROA.git
git config user.name "NeoCloud ROA bot"
git config user.email "support@neocloud.tw"
git add .