-
Notifications
You must be signed in to change notification settings - Fork 81
49 lines (41 loc) · 1.4 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
44
45
46
47
48
49
on:
push:
branches:
- master
name: release-please
jobs:
release-please:
if: github.repository_owner == 'rust-bio'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: GoogleCloudPlatform/release-please-action@v3
id: release_main
with:
release-type: rust
package-name: rust-htslib
bump-minor-pre-major: true
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
if: ${{ steps.release_main.outputs.release_created }}
with:
toolchain: stable
override: true
- name: Install system dependencies
if: ${{ steps.release_main.outputs.release_created }}
run: |
sudo apt-get install --yes zlib1g-dev libbz2-dev musl musl-dev musl-tools clang libc6-dev
- uses: Swatinem/[email protected]
if: ${{ steps.release_main.outputs.release_created }}
- name: Publish rust-htslib
if: ${{ steps.release_main.outputs.release_created }}
uses: actions-rs/cargo@v1
with:
command: publish
args: --token ${{ secrets.CRATES_IO_TOKEN }}
# - uses: katyo/publish-crates@v1
# if: ${{ steps.release_main.outputs.release_created || steps.release_sys.outputs.release_created }}
# with:
# registry-token: ${{ secrets.CRATES_IO_TOKEN }}