tangled
alpha
login
or
join now
bates64.com
/
loroscope
0
fork
atom
Typed structs for Loro CRDTs
rust
crdt
0
fork
atom
overview
issues
pulls
pipelines
ci: add publish workflow
bates64.com
1 month ago
d2ee7843
0bf079a2
0/3
fmt.yaml
pending
4w ago
publish.yaml
running
4w ago
test.yaml
pending
4w ago
+20
1 changed file
expand all
collapse all
unified
split
.tangled
workflows
publish.yaml
+20
.tangled/workflows/publish.yaml
···
1
1
+
when:
2
2
+
- event: [push]
3
3
+
branch: main
4
4
+
engine: nixery
5
5
+
depdendencies:
6
6
+
nixpkgs:
7
7
+
- rustc
8
8
+
- cargo
9
9
+
steps:
10
10
+
- name: run tests (release)
11
11
+
command: cargo test --release
12
12
+
- name: publish to crates.io
13
13
+
command: |
14
14
+
cargo publish 2>&1 | tee /tmp/publish.log
15
15
+
EXIT=${PIPESTATUS[0]}
16
16
+
if [ $EXIT -ne 0 ]; then
17
17
+
grep -q 'already uploaded' /tmp/publish.log && echo 'Version already published, skipping.' || exit $EXIT
18
18
+
fi
19
19
+
environment:
20
20
+
CARGO_REGISTRY_TOKEN: "$CRATES_IO_TOKEN"