--- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,36 @@ with: command: test args: --all - release: + + cargo-release: + if: startsWith(github.ref, 'refs/tags/') + needs: [test] + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v2 + - name: Install stable toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - name: Install cargo release command + uses: actions-rs/cargo@v1 + with: + command: install + args: cargo-release + - name: Run cargo login + uses: actions-rs/cargo@v1 + with: + command: login + args: ${{ secrets.CARGO_TOKEN }} + - name: Publish crates + uses: actions-rs/cargo@v1 + with: + command: release + args: --no-dev-version --skip-push --skip-tag --no-confirm + + github-release: if: startsWith(github.ref, 'refs/tags/') needs: [test] strategy: