Skip to content

Commit

Permalink
chore: swap publish-crates for release-plz (#82)
Browse files Browse the repository at this point in the history
The workflow on release-plz is pretty great. I'm not sure if it works
exactly the way I want it to, but there's one way to find out.
  • Loading branch information
obmarg committed Apr 5, 2024
1 parent ec21a51 commit 9dceff3
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 46 deletions.
45 changes: 0 additions & 45 deletions .github/workflows/publish.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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: Generate GitHub token
uses: actions/create-github-app-token@v1
id: generate-token
with:
app-id: ${{ secrets.RELEASE_APP_ID }}
private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
- 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: ${{ steps.generate-token.outputs.token }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Rust
name: rust

on:
push:
Expand Down

0 comments on commit 9dceff3

Please sign in to comment.