From 9039518814592b2da07812e3cb83d27db8b6100b Mon Sep 17 00:00:00 2001 From: Kyle J Turpin Date: Sat, 22 Aug 2026 09:22:30 -0500 Subject: [PATCH] Update README with detailed usage instructions; switch workflows to MiniServ-nix-runner --- .gitea/workflows/test.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 8fc5f25..448f0cc 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -42,7 +42,19 @@ 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 }} - run: nix develop --extra-experimental-features "nix-command flakes" -c cargo publish --registry gitea --verbose \ No newline at end of file + CARGO_TOKEN: ${{ secrets.CARGO_TOKEN }} + run: nix develop --extra-experimental-features "nix-command flakes" -c cargo publish --registry gitea --token "${CARGO_TOKEN}" --verbose \ No newline at end of file