diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index bb94526..9401f75 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -28,4 +28,8 @@ jobs: # wireguard-mfa.exe # api_key: '${{secrets.CICD_API_TOKEN}}' - name: Distribute file on web - run: echo '${{secrets.CICD_SSH_KEY}}' | scp -i /dev/stdin wireguard-mfa.exe filehosting:/var/www/git.gibonuddevalla.se/cicd/ + run: | + export SSH_KEY_FILE=$(mktemp) + echo '${{secrets.CICD_SSH_KEY}}' >$SSH_KEY_FILE + scp -i $SSH_KEY_FILE /dev/stdin wireguard-mfa.exe filehosting:/var/www/git.gibonuddevalla.se/cicd/ + rm -v $SSH_KEY_FILE