tangled
alpha
login
or
join now
pyrox.dev
/
blog
0
fork
atom
My blog
0
fork
atom
overview
issues
pulls
pipelines
update deploy script and add tangled deploy workflow
pyrox.dev
7 months ago
af1de59c
ef2545fc
verified
This commit was signed with the committer's
known signature
.
pyrox.dev
SSH Key Fingerprint:
SHA256:ihSg8ro3xVhqiuGLMtUGTeMVgmEMlaXvSS4AFyYcM/o=
0/1
deploy.yaml
failed
2m 59s
+22
-3
2 changed files
expand all
collapse all
unified
split
.tangled
workflows
deploy.yaml
deploy.sh
+19
.tangled/workflows/deploy.yaml
···
1
1
+
when:
2
2
+
- event: ["push"]
3
3
+
branch: ["main"]
4
4
+
- event: ["manual"]
5
5
+
6
6
+
dependencies:
7
7
+
## from nixpkgs
8
8
+
nixpkgs:
9
9
+
- nodejs
10
10
+
- git
11
11
+
steps:
12
12
+
- name: "Set up SSH Key"
13
13
+
command: "echo $SSH_KEY > .ssh/id_ed25519"
14
14
+
15
15
+
- name: "Config Git"
16
16
+
command: "git config core.sshCommand 'ssh -i ~/.ssh/id_ed25519'"
17
17
+
18
18
+
- name: "Deploy"
19
19
+
command: "./deploy.sh"
+3
-3
deploy.sh
···
23
23
24
24
echo "Making commit..."
25
25
git add --all
26
26
-
git commit -m "Deploying $COMMIT_ID to PyroNet Git"
26
26
+
git commit -m "Deploying $COMMIT_ID to Tangled"
27
27
28
28
-
echo "Pushing to PyroNet Git..."
29
29
-
git remote add origin "https://git.pyrox.dev/pyrox/new-blog.git"
28
28
+
echo "Pushing to Tangled..."
29
29
+
git remote add origin " git@knot.pyrox.dev:pyrox.dev/blog"
30
30
git push --force origin "pages:pages"
31
31
32
32
echo "Cleaning up tmpdir..."