Skip to content

Commit

Permalink
chore: set up release-please (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
luizirber committed May 6, 2023
1 parent 81ed1c0 commit a822305
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/conventional-prs.yml
Original file line number Diff line number Diff line change
@@ -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 }}
40 changes: 40 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
on:
push:
branches:
- latest

permissions:
contents: write
pull-requests: write

name: release-please

jobs:
release-please:
if: github.repository_owner == 'sourmash-bio'
runs-on: ubuntu-latest
steps:

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

- 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 }}

0 comments on commit a822305

Please sign in to comment.