Add build workflow to JSON schemas; refine Cargo publish step in test workflow
cargo test / test (push) Successful in 6s
cargo test / publish (push) Failing after 4s

This commit is contained in:
2026-08-22 09:39:16 -05:00
parent 9039518814
commit ed0d2df9a0
2 changed files with 4 additions and 13 deletions
+1 -13
View File
@@ -42,19 +42,7 @@ jobs:
index = "sparse+https://git.moturpin.com/api/packages/Matsubaa/cargo/"
EOF
- name: Write Cargo credentials
env:
CARGO_TOKEN: ${{ secrets.CARGO_TOKEN }}
run: |
mkdir -p ~/.cargo
umask 077
cat > ~/.cargo/credentials.toml <<'EOF'
[registries.gitea]
token = "${CARGO_TOKEN}"
EOF
- name: Publish to Gitea Cargo registry
env:
CARGO_REGISTRIES_GITEA_TOKEN: ${{ secrets.CARGO_TOKEN }}
CARGO_TOKEN: ${{ secrets.CARGO_TOKEN }}
run: nix develop --extra-experimental-features "nix-command flakes" -c cargo publish --registry gitea --token "${CARGO_TOKEN}" --verbose
run: nix develop --extra-experimental-features "nix-command flakes" -c cargo publish --registry gitea --verbose
+3
View File
@@ -14,6 +14,9 @@
<Item>
<option name="path" value=".gitea/workflows/test.yml" />
</Item>
<Item>
<option name="path" value=".gitea/workflows/build.yml" />
</Item>
</list>
</option>
</SchemaInfo>