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 3afb7c5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ jobs:
nix-build
- 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/"
5 changes: 5 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,9 @@ in pkgs.stdenv.mkDerivation rec {
installPhase = ''
mv www $out
'';

dontMakeSourcesWritable = true;
postUnpack = ''
chmod +x result
'';
}

0 comments on commit 3afb7c5

Please sign in to comment.