git.delta.rocks / jrsonnet / refs/commits / 07e9a2f24caf

difftreelog

Add job to publish to crates.io

Bruno Felipe Leal Delfino2021-04-30parent: #cef41f1.patch.diff
in: master

1 file changed

modified.github/workflows/release.ymldiffbeforeafterboth
20 command: test20 command: test
21 args: --all21 args: --all
22
23 cargo-release:
24 if: startsWith(github.ref, 'refs/tags/')
25 needs: [test]
26 runs-on: ubuntu-latest
27 steps:
28 - name: Checkout sources
29 uses: actions/checkout@v2
30 - name: Install stable toolchain
31 uses: actions-rs/toolchain@v1
32 with:
33 toolchain: stable
34 override: true
35 - name: Install cargo release command
36 uses: actions-rs/cargo@v1
37 with:
38 command: install
39 args: cargo-release
40 - name: Run cargo login
41 uses: actions-rs/cargo@v1
42 with:
43 command: login
44 args: ${{ secrets.CARGO_TOKEN }}
45 - name: Publish crates
46 uses: actions-rs/cargo@v1
47 with:
48 command: release
49 args: --no-dev-version --skip-push --skip-tag --no-confirm
50
22 release:51 github-release:
23 if: startsWith(github.ref, 'refs/tags/')52 if: startsWith(github.ref, 'refs/tags/')
24 needs: [test]53 needs: [test]
25 strategy:54 strategy: