- workflow fix
This commit is contained in:
1 parent
81bd302967
commit
f94c77c3f8
2 files changed
+4
-4
No files matched your search
@@ -1,4 +1,4 @@
|
|||||||
name: Publish
|
name: Publish_rs
|
||||||
|
|
||||||
on: [workflow_dispatch]
|
on: [workflow_dispatch]
|
||||||
|
|
||||||
@@ -21,12 +21,13 @@ jobs:
|
|||||||
|
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
run: |-
|
run: |-
|
||||||
export PATH="$HOME/.cargo/bin:$PATH"
|
export PATH="${CARGO_HOME:-$HOME/.cargo}/bin:$PATH"
|
||||||
if ! command -v rustc >/dev/null 2>&1; then
|
if ! command -v rustc >/dev/null 2>&1; then
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||||
else
|
else
|
||||||
rustup update
|
rustup update
|
||||||
fi
|
fi
|
||||||
|
echo "${CARGO_HOME:-$HOME/.cargo}/bin" >> "$GITHUB_PATH"
|
||||||
cargo install cargo-release
|
cargo install cargo-release
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
@@ -47,7 +48,6 @@ jobs:
|
|||||||
# have passed.
|
# have passed.
|
||||||
- name: "cargo release publish"
|
- name: "cargo release publish"
|
||||||
run: |-
|
run: |-
|
||||||
export PATH="$HOME/.cargo/bin:$PATH"
|
|
||||||
cargo login ${{ secrets.CRATES_IO_API_TOKEN }}
|
cargo login ${{ secrets.CRATES_IO_API_TOKEN }}
|
||||||
cargo release \
|
cargo release \
|
||||||
publish \
|
publish \
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
name: CI
|
name: Publish_py
|
||||||
|
|
||||||
on: [workflow_dispatch]
|
on: [workflow_dispatch]
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user