Skip to content

Commit

Permalink
fix exec err
Browse files Browse the repository at this point in the history
  • Loading branch information
wesl-ee committed Dec 19, 2023
1 parent 5ffeaf8 commit 7fcee19
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,16 @@ jobs:
- name: Build Website
run: |
nix-build
ls -la
ls -la result/
whoami
- name: Upload to Remote Server
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
rsync -av --delete -e result/ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/srv/http/wesl.ee/
uses: appleboy/scp-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: 22
source: "result/"
target: "/srv/http/wesl-ee/"

0 comments on commit 7fcee19

Please sign in to comment.