From ae5024e7ca253a01829ae870a433ad1b1ea8bd54 Mon Sep 17 00:00:00 2001 From: Boshen Date: Mon, 3 Jun 2024 00:02:56 +0800 Subject: [PATCH] ci: add prepare release workflow --- .github/workflows/prepare_release_crates.yml | 50 ++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/prepare_release_crates.yml diff --git a/.github/workflows/prepare_release_crates.yml b/.github/workflows/prepare_release_crates.yml new file mode 100644 index 00000000000000..b30f61d2713359 --- /dev/null +++ b/.github/workflows/prepare_release_crates.yml @@ -0,0 +1,50 @@ +name: Prepare Release Crates + +on: + workflow_dispatch: + push: + branches: + - prepare-release + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + pull-requests: write + contents: write + +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: + token: ${{ secrets.GITHUB_TOKEN }} + commit-message: Publish crates + committer: Boshen + author: Boshen + branch: release/crates + branch-suffix: timestamp + title: Publish crates + body: Automated Release + assignees: Boshen + reviewers: Boshen