-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (36 loc) · 1.1 KB
/
release-please.yml
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
on:
push:
branches:
- main
name: release-please
jobs:
release-please:
if: github.repository_owner == 'bihealth'
runs-on: ubuntu-latest
steps:
- uses: GoogleCloudPlatform/release-please-action@v2
id: release
with:
release-type: rust
package-name: varfish-server-worker
token: ${{ secrets.BOT_TOKEN }}
- uses: actions/checkout@v2
if: ${{ steps.release.outputs.release_created }}
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
if: ${{ steps.release.outputs.release_created }}
with:
toolchain: stable
override: true
- name: Setup protoc
uses: arduino/[email protected]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: Swatinem/[email protected]
if: ${{ steps.release.outputs.release_created }}
- name: Publish crate
if: ${{ steps.release.outputs.release_created }}
uses: actions-rs/cargo@v1
with:
command: publish
args: --token ${{ secrets.CRATES_IO_TOKEN }}