From 77e067cf173b49b0491a3a7a4d16def226e9b0ca Mon Sep 17 00:00:00 2001 From: dish Date: Sat, 9 Aug 2025 11:50:58 -0400 Subject: [PATCH] update deploy script and add tangled deploy workflow --- .tangled/workflows/deploy.yaml | 19 +++++++++++++++++++ deploy.sh | 6 +++--- 2 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 .tangled/workflows/deploy.yaml diff --git a/.tangled/workflows/deploy.yaml b/.tangled/workflows/deploy.yaml new file mode 100644 index 0000000..9dd6b9b --- /dev/null +++ b/.tangled/workflows/deploy.yaml @@ -0,0 +1,19 @@ +when: + - event: ["push"] + branch: ["main"] + - event: ["manual"] + +dependencies: + ## from nixpkgs + nixpkgs: + - nodejs + - git +steps: + - name: "Set up SSH Key" + command: "mkdir .ssh ; echo $SSH_KEY > .ssh/id_ed25519" + + - name: "Config Git" + command: "git config core.sshCommand 'ssh -i ~/.ssh/id_ed25519'" + + - name: "Deploy" + command: "./deploy.sh" diff --git a/deploy.sh b/deploy.sh index c698016..0b140ad 100755 --- a/deploy.sh +++ b/deploy.sh @@ -23,10 +23,10 @@ git config user.email "actions-noreply@pyrox.dev" echo "Making commit..." git add --all -git commit -m "Deploying $COMMIT_ID to PyroNet Git" +git commit -m "Deploying $COMMIT_ID to Tangled" -echo "Pushing to PyroNet Git..." -git remote add origin "https://git.pyrox.dev/pyrox/new-blog.git" +echo "Pushing to Tangled..." +git remote add origin " git@knot.pyrox.dev:pyrox.dev/blog" git push --force origin "pages:pages" echo "Cleaning up tmpdir..." -- 2.51.2