- workflow fix

- bump dependencies
This commit is contained in:
w.pomp committed 2026-10-01 19:27:09 +02:00
1 parent f94c77c3f8
commit 7af9cdb5a3
7 files changed
+42 -37

No files matched your search

+9 -8
View File
@@ -1,6 +1,6 @@
name: Publish_rs
on: [workflow_dispatch]
on: [ workflow_dispatch ]
permissions:
contents: read
@@ -10,24 +10,25 @@ jobs:
name: Publish (crates.io)
runs-on: ubuntu-latest
timeout-minutes: 25
env:
CARGO_HOME: ${{ github.workspace }}/.cargo
steps:
- uses: actions/checkout@v6
- name: Restore cache
uses: actions/cache/restore@v4
with:
path: |
~/.cargo
path: ${{ env.CARGO_HOME }}
key: cache-ubuntu-cargo-publish
- name: Install Rust
run: |-
export PATH="${CARGO_HOME:-$HOME/.cargo}/bin:$PATH"
export PATH="$CARGO_HOME/bin:$PATH"
if ! command -v rustc >/dev/null 2>&1; then
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
else
rustup update
fi
echo "${CARGO_HOME:-$HOME/.cargo}/bin" >> "$GITHUB_PATH"
echo "$CARGO_HOME/bin" >> "$GITHUB_PATH"
cargo install cargo-release
shell: bash
@@ -47,8 +48,9 @@ jobs:
# which is reasonable, since this job only runs after the Linux, Windows, and WASM builds
# have passed.
- name: "cargo release publish"
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_API_TOKEN }}
run: |-
cargo login ${{ secrets.CRATES_IO_API_TOKEN }}
cargo release \
publish \
--workspace \
@@ -61,6 +63,5 @@ jobs:
- name: Store cache
uses: actions/cache/save@v4
with:
path: |
~/.cargo
path: ${{ env.CARGO_HOME }}
key: cache-ubuntu-cargo-publish