Skip to content

Commit

Permalink
Add release-plz and clean up workflows (#1510)
Browse files Browse the repository at this point in the history
It's no secret that we're lacking behind on releases;
partially, because they are slightly tedious to create.

My hope is that this will be resolved by introducing `release-plz` [1],
which is automates publication whenever we push to `master`.

Along the way, I aligned the naming of the other workflows.

[1]: https://github.com/MarcoIeni/release-plz
  • Loading branch information
mre authored Oct 5, 2024
1 parent b9ad685 commit f1ac926
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 2 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# - Dockerfile-CI.alpine.Dockerfile
# - https://github.com/lycheeverse/lychee-action/blob/master/action.yml

name: Release
name: Release Binary
on:
release:
types:
Expand All @@ -16,7 +16,6 @@ env:

jobs:
prepare:
name: Build release binary
runs-on: ubuntu-latest
outputs:
tag_name: ${{ steps.get_release.outputs.tag_name }}
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/release-plz.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Release-plz pipeline for publishing
# a new GitHub + crates.io release

name: Release-plz

permissions:
pull-requests: write
contents: write

on:
push:
branches:
- main
- master

jobs:
release-plz:
name: Release-plz
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run release-plz
uses: MarcoIeni/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
File renamed without changes.

0 comments on commit f1ac926

Please sign in to comment.