Skip to content

Commit

Permalink
Merge pull request #198 from tkrs/use-release-please
Browse files Browse the repository at this point in the history
ci: use release-please
  • Loading branch information
tkrs authored Aug 12, 2024
2 parents 226e9ed + a69978a commit cb2b74b
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 137 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ jobs:
build_and_test:
name: Test and Build - ${{ matrix.version }}
runs-on: ubuntu-latest
if: ${{ ! startsWith(github.event.commits[0].message, 'chore(release):') }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -44,7 +43,6 @@ jobs:
lint:
name: Lint
runs-on: ubuntu-latest
if: ${{ ! startsWith(github.event.commits[0].message, 'chore(release):') }}
steps:
- uses: actions/checkout@v4
- name: Install toolchain and components
Expand Down
55 changes: 0 additions & 55 deletions .github/workflows/pr.yml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/publish.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
on:
push:
branches:
- master

permissions:
contents: write
pull-requests: write

name: release-please

jobs:
release-please:
runs-on: ubuntu-latest
environment: crates-io
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
release-type: rust
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
- name: Install rust toolchain stable
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
target: x86_64-unknown-linux-gnu
if: ${{ steps.release.outputs.release_created }}
- run: cargo publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
if: ${{ steps.release.outputs.release_created }}
27 changes: 0 additions & 27 deletions .github/workflows/tagging.yml

This file was deleted.

14 changes: 0 additions & 14 deletions .versionrc.json

This file was deleted.

0 comments on commit cb2b74b

Please sign in to comment.