diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b8b5340..04567ce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,11 +59,7 @@ jobs: toolchain: nightly components: clippy - - # FIXME: Switch back when actions-rs/cargo#217 gets merged - uses: r3-os/actions-rust-cargo@fb222fe18dc90e381546d012f9e3d6f353f0f627 - with: - command: clippy - args: --workspace --all-features -- -D warnings + - run: cargo clippy --workspace --all-features -- -D warnings coverage: name: Coverage diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 47f7be8..9df4f0b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -63,34 +63,25 @@ jobs: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@stable - - name: workspaces Cache - id: workspaces_cache + - name: cargo-release Cache + id: cargo_release_cache uses: actions/cache@v3 with: - path: ~/.cargo/bin/cargo-workspaces - key: ${{ runner.os }}-cargo-workspaces + path: ~/.cargo/bin/cargo-release + key: ${{ runner.os }}-cargo-release - - # FIXME: Switch back when actions-rs/cargo#217 gets merged - uses: r3-os/actions-rust-cargo@fb222fe18dc90e381546d012f9e3d6f353f0f627 - if: steps.workspaces_cache.outputs.cache-hit != 'true' - with: - command: install - args: cargo-workspaces + - run: cargo install cargo-release + if: steps.cargo_release_cache.outputs.cache-hit != 'true' - name: cargo login - # FIXME: Switch back when actions-rs/cargo#217 gets merged - uses: r3-os/actions-rust-cargo@fb222fe18dc90e381546d012f9e3d6f353f0f627 - with: - command: login - args: ${{ secrets.CRATES_IO_API_TOKEN }} - - - # FIXME: Switch back when actions-rs/cargo#217 gets merged - uses: r3-os/actions-rust-cargo@fb222fe18dc90e381546d012f9e3d6f353f0f627 - with: - command: workspaces - args: > - publish - --from-git - --allow-branch main - --force '*' - --no-git-tag + run: cargo login ${{ secrets.CRATES_IO_API_TOKEN }} + + - name: "cargo release publish" + run: |- + cargo release \ + publish \ + --workspace \ + --all-features \ + --allow-branch HEAD \ + --no-confirm \ + --execute