git.delta.rocks / jrsonnet / refs/commits / 17be9ccaf6ff

difftreelog

Merge pull request #38 from bruno-delfino1995/cargo-release

Yaroslav Bolyukin2021-04-30parents: #cef41f1 #07e9a2f.patch.diff
in: master
Add job to publish to crates.io

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: