Use cargo-publish-all for release.
@@ -64,21 +64,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
+ - uses: actions-rs/toolchain@v1
+ with:
+ toolchain: stable
+ override: true
- name: cargo fetch
uses: actions-rs/cargo@v1
with:
command: fetch
- - name: cargo publish lychee-lib
- uses: actions-rs/cargo@v1
- env:
- CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
+ - uses: actions-rs/install@v0.1
with:
- command: publish
- args: --manifest-path lychee-lib/Cargo.toml
- - name: cargo publish lychee
- uses: actions-rs/cargo@v1
+ crate: cargo-publish-all
+ version: latest
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- with:
- command: publish
- args: --manifest-path lychee-bin/Cargo.toml
+ - run: cargo-publish-all
