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..."