Skip to content

Commit

Permalink
ci: Switch to Release-plz. (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
jetuk authored Jul 24, 2024
1 parent dc77f53 commit 4e86abe
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 58 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release-plz.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Release-plz

permissions:
pull-requests: write
contents: write

on:
push:
branches:
- main

jobs:
release-plz:
name: Release-plz
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run release-plz
uses: MarcoIeni/release-plz-action@v0.5
with:
command: release-pr
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42 changes: 0 additions & 42 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,45 +26,3 @@ jobs:

- name: Run tests (without coverage)
run: cargo test --all-targets

release-please:
name: Execute release chores

permissions:
contents: write
pull-requests: write

runs-on: ubuntu-latest
needs: build-test

outputs:
created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}

steps:
- uses: googleapis/release-please-action@v4
id: release
with:
release-type: rust

# publish:
# name: Publish to crates.io
#
# runs-on: ubuntu-latest
# needs: release-please
# if: needs.release-please.outputs.created
#
# environment: crates.io
#
# steps:
# - uses: actions/checkout@v3
# - uses: swatinem/rust-cache@v2
#
# - name: Publish
# # https://doc.rust-lang.org/cargo/reference/config.html?highlight=CARGO_REGISTRY_TOKEN#credentials
# run: >
# cargo publish
# --verbose
# --locked
# --no-verify
# --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
5 changes: 0 additions & 5 deletions .release-please-manifest.json

This file was deleted.

11 changes: 0 additions & 11 deletions release-please-config.json

This file was deleted.

0 comments on commit 4e86abe

Please sign in to comment.