Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Release

on:
push:
branches:
- main
workflow_run:
workflows:
- Rust
types:
- completed

permissions:
contents: write
pull-requests: write

concurrency:
group: release-plz
cancel-in-progress: false

jobs:
release-pr:
name: Create or update release PR
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: release-plz/action@v0.5
with:
command: release-pr
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

publish:
name: Publish release
if: >-
github.event_name == 'workflow_run' &&
github.event.workflow_run.conclusion == 'success' &&
startsWith(github.event.workflow_run.head_commit.message, 'chore: release v')
runs-on: ubuntu-latest
environment: crates-io
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.workflow_run.head_sha }}
- uses: release-plz/action@v0.5
with:
command: release
token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 6 additions & 0 deletions release-plz.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[workspace]
git_tag_name = "v{{ version }}"
git_release_name = "v{{ version }}"
publish_all_features = true
release_always = false
release_commits = "^(feat|fix)(\\([^)]*\\))?!?:"
2 changes: 1 addition & 1 deletion tests/priority_queue_deckey_tests/change_key_or_push.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ where
P: PriorityQueueDecKey<usize, f64>,
{
fn push_at_first_pass(i: usize) -> bool {
i % 3 != 0
!i.is_multiple_of(3)
}

pq.clear();
Expand Down
Loading