diff --git a/.gitea/workflows/build-and-copy.yaml b/.gitea/workflows/build-and-copy.yaml index 54a3ac7..4fad7fa 100644 --- a/.gitea/workflows/build-and-copy.yaml +++ b/.gitea/workflows/build-and-copy.yaml @@ -19,7 +19,9 @@ jobs: env: NODE_ENV: production OMNIVORE_API_KEY: ${{ secrets.OMNIVORE_API_KEY }} - - name: Create ssh key - run: mkdir ~/.ssh && echo "${{ secrets.SSH_KEY }}" >> ~/.ssh/id_rsa + - name: Install SSH Key + uses: shimataro/ssh-key-action@v2 + with: + key: ${{ secrets.SSH_KEY }} - name: Copy _site to prod run: scp -rp _site/ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/var/www/html \ No newline at end of file