From 17be9ccaf6ffef72bbc01a33bbe16e8c2c6b0794 Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Fri, 30 Apr 2021 16:00:12 +0000 Subject: [PATCH] Merge pull request #38 from bruno-delfino1995/cargo-release Add job to publish to crates.io --- --- 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: -- gitstuff