Skip to content

Commit

Permalink
ci: add prepare release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Jun 2, 2024
1 parent ac66de6 commit 2d4744a
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/prepare_release_crates.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Prepare Release Crates

on:
workflow_dispatch:
push:
branches:
- prepare-release

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-D warnings"

jobs:
prepare_release:
name: Prepare Release Crates
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: cargo-bins/cargo-binstall@main

- uses: Boshen/setup-rust@main
with:
cache-key: warm
tools: cargo-release-oxc

- run: cargo release-oxc update --patch

- uses: peter-evans/create-pull-request@v6
with:
commit-message: "Publish crates"
committer: "Boshen <Boshen@users.noreply.github.com>"
author: "Boshen <Boshen@users.noreply.github.com>"
branch: release/crates
branch-suffix: timestamp
title: "Publish crates"
body: "Automated Release"
assignees: Boshen
reviewers: Boshen

0 comments on commit 2d4744a

Please sign in to comment.