Add build workflow to JSON schemas; refine Cargo publish step in test workflow
This commit is contained in:
@@ -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
|
||||
Generated
+3
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user