try to upload using private key
build and publish / publish (push) Failing after 1m40s Details
build and publish / check_config (push) Successful in 1m57s Details

Cyryl Płotnicki 2023-08-12 18:56:26 +01:00
parent fc6b13ff15
commit cd5c616da2
1 changed files with 6 additions and 5 deletions

View File

@ -18,15 +18,16 @@ jobs:
- name: Flake check
run: |
nix flake check
runs-on: flakes-action
- uses: actions/checkout@v3
name: Checkout
- name: build
- name: Build
run: |
nix develop -c hugo --gc --minify
- name: publish
- name: Publish
run: |
echo "TODO: copy private key"
nix develop -c rsync -avz public/ root@mb1:/var/www/blog/
mkdir -p ~/.ssh/
cat >> ~/.ssh/id_ed25519 << EOF \n${{ secrets.MB1_SSH_UPLOAD_KEY }}" EOF
nix develop -c rsync -avz public/