Skip to content

Commit

Permalink
chore: add release automation (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneskoester committed Jul 6, 2021
1 parent 3d70221 commit 782499e
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/conventional-prs.yml
@@ -0,0 +1,16 @@
name: PR
on:
pull_request_target:
types:
- opened
- reopened
- edited
- synchronize

jobs:
title-format:
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v3.4.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42 changes: 42 additions & 0 deletions .github/workflows/release-please.yml
@@ -0,0 +1,42 @@
on:
push:
branches:
- master

name: release-please

jobs:
release-please:
runs-on: ubuntu-latest
steps:

- uses: GoogleCloudPlatform/release-please-action@v2
id: release
with:
release-type: rust
package-name: bio

- 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: Install system dependencies
if: ${{ steps.release.outputs.release_created }}
run: |
sudo apt-get install --yes zlib1g-dev libbz2-dev musl musl-dev musl-tools clang libc6-dev
- uses: Swatinem/rust-cache@v1.3.0
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 }}

0 comments on commit 782499e

Please sign in to comment.