diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4397729..bf8ed58 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,28 +9,42 @@ env: CARGO_TERM_COLOR: always jobs: + cargo-check: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v3 + - name: setup rust toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - name: cargo check + uses: actions-rs/cargo@v1 + with: + command: check + release-github: + needs: cargo-check runs-on: ubuntu-latest steps: - - name: Checkout + - name: checkout uses: actions/checkout@v3 - - name: Release + - name: release to github uses: softprops/action-gh-release@v1 release-crates-io: + needs: cargo-check runs-on: ubuntu-latest steps: - - name: Checkout + - name: checkout uses: actions/checkout@v3 - - name: Setup rust toolchain + - name: setup rust toolchain uses: actions-rs/toolchain@v1 with: toolchain: stable - - name: Dry run publish - uses: katyo/publish-crates@v1 - with: - dry-run: true - - name: Publish to crates.io + override: true + - name: publish to crates.io uses: katyo/publish-crates@v1 with: registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}