fix: ci step misconfiguration
Some checks failed
Build & Deploy / build (push) Successful in 14s
Build & Deploy / deploy-to-remote (push) Successful in 15s
Build & Deploy / deploy-to-cloudflare (push) Failing after 27s

This commit is contained in:
CDN 2023-11-15 11:10:52 +08:00
parent 73c614f4c2
commit c39feb5c9a
Signed by: CDN18
GPG key ID: CF7D420E4A155266

View file

@ -20,9 +20,6 @@ jobs:
extended: true
- name: Build
run: hugo --minify
- name: Add known host
run:
echo "${{ secrets.SSH_KNOWN_HOSTS }}" >> ~/.ssh/known_hosts
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
@ -42,6 +39,9 @@ jobs:
uses: https://github.com/webfactory/ssh-agent@v0.7.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Add known host
run:
echo "${{ secrets.SSH_KNOWN_HOSTS }}" >> ~/.ssh/known_hosts
- name: Publish to remote
run: |
apt update && apt install rsync -y