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/"
|
index = "sparse+https://git.moturpin.com/api/packages/Matsubaa/cargo/"
|
||||||
EOF
|
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
|
- name: Publish to Gitea Cargo registry
|
||||||
env:
|
env:
|
||||||
CARGO_REGISTRIES_GITEA_TOKEN: ${{ secrets.CARGO_TOKEN }}
|
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 --verbose
|
||||||
run: nix develop --extra-experimental-features "nix-command flakes" -c cargo publish --registry gitea --token "${CARGO_TOKEN}" --verbose
|
|
||||||
Generated
+3
@@ -14,6 +14,9 @@
|
|||||||
<Item>
|
<Item>
|
||||||
<option name="path" value=".gitea/workflows/test.yml" />
|
<option name="path" value=".gitea/workflows/test.yml" />
|
||||||
</Item>
|
</Item>
|
||||||
|
<Item>
|
||||||
|
<option name="path" value=".gitea/workflows/build.yml" />
|
||||||
|
</Item>
|
||||||
</list>
|
</list>
|
||||||
</option>
|
</option>
|
||||||
</SchemaInfo>
|
</SchemaInfo>
|
||||||
|
|||||||
Reference in New Issue
Block a user