tangled
alpha
login
or
join now
regnault.dev
/
spindle-artifact
A cli tool to upload an artifact to a tangled repo, mainly during spindle workflows
ci
artifact
spindle
7
fork
atom
overview
issues
pulls
pipelines
Compare changes
Choose any two refs to compare.
base:
test
main
1.0.0
compare:
test
main
1.0.0
go
+29
-10
2 changed files
expand all
collapse all
unified
split
.tangled
workflows
release.yml
test.yml
+3
-10
.tangled/workflows/release.yml
···
1
1
when:
2
2
- event: ["push"]
3
3
+
branch: ["main"]
3
4
tag: ["*"]
4
5
5
6
engine: nixery
···
18
19
CGO_ENABLED: 1
19
20
20
21
steps:
21
21
-
- name: Setup git
22
22
-
command: |
23
23
-
git fetch
24
24
-
git checkout main
25
25
-
git pull --tags
26
26
-
27
22
- name: Build
28
23
command: |
29
29
-
TAG=$(git tag | tac | head -1)
30
24
go build .
31
31
-
mv spindle-artifact spindle-artifact-$TAG
25
25
+
mv spindle-artifact spindle-artifact-$TANGLED_REF_NAME
32
26
33
27
- name: Upload artifact
34
28
command: |
35
35
-
TAG=$(git tag | tac | head -1)
36
36
-
~/.nix-profile/bin/spindle-artifact spindle-artifact $TAG spindle-artifact-$TAG
29
29
+
~/.nix-profile/bin/spindle-artifact spindle-artifact $TANGLED_REF_NAME spindle-artifact-$TANGLED_REF_NAME
+26
.tangled/workflows/test.yml
···
1
1
+
when:
2
2
+
- event: ["push", "manual"]
3
3
+
branch: ["test"]
4
4
+
tag: ["*"]
5
5
+
6
6
+
engine: nixery
7
7
+
8
8
+
dependencies:
9
9
+
nixpkgs:
10
10
+
- semver-tool
11
11
+
- openssh
12
12
+
- less
13
13
+
14
14
+
steps:
15
15
+
- name: Test
16
16
+
command: |
17
17
+
echo $TANGLED_REPO_KNOT
18
18
+
echo $TANGLED_REPO_DID
19
19
+
echo $TANGLED_REPO_DID
20
20
+
echo $TANGLED_REPO_DEFAULT_BRANCH
21
21
+
echo $TANGLED_REPO_URL
22
22
+
echo $TANGLED_REF
23
23
+
echo $TANGLED_REF_NAME
24
24
+
echo $TANGLED_REF_TYPE
25
25
+
echo $TANGLED_SHA
26
26
+
echo $TANGLED_COMMIT_SHA