-
Notifications
You must be signed in to change notification settings - Fork 8
44 lines (38 loc) · 1.12 KB
/
release-please.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
name: CD
on:
push:
branches:
- master
jobs:
release-please:
name: Release Please # https://github.com/googleapis/release-please
runs-on: ubuntu-latest
steps:
- name: Release Please
uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: rust
package-name: release-please-action
bump-minor-pre-major: true
bump-patch-for-minor-pre-major: true
extra-files: |
README.md
- name: Checkout
if: ${{ steps.release.outputs.release_created }}
uses: actions/checkout@v2
- name: Install Rust
if: ${{ steps.release.outputs.release_created }}
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Cache
if: ${{ steps.release.outputs.release_created }}
uses: Swatinem/rust-cache@v1
- name: Publish to crates.io
if: ${{ steps.release.outputs.release_created }}
run: |
cargo publish --token "${{ secrets.CARGO_REGISTRY_TOKEN }}"