Feat. Making nix-build_deploy a script rather than 3 commands

Signed-off-by: Eoghan Conlon <eoghanconlon73@skynet.ie>
This commit is contained in:
eoghanconlon73 2025-02-12 17:34:57 +00:00
parent bdbf720c05
commit 3e4f9bd5de
2 changed files with 6 additions and 3 deletions

View file

@ -9,9 +9,7 @@ runs:
with:
repository: ${{ gitea.repository }}
ref_name: ${{ gitea.ref_name }}
- run: nix build
- run: mkdir temp
- run: cp -rL result/* ./temp
- run: build.sh
- uses: https://forgejo.skynet.ie/Skynet/actions/deploy_user@v6
with:
ssh_key: ${{ secrets.SSH_KEY }}

5
nix-build_deploy/build.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash
nix build
mkdir temp
cp -rL result/* ./temp