Skip to content

Commit

Permalink
Release PR action (#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
kflansburg authored Mar 8, 2024
1 parent 8dcd984 commit 5f078bf
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/create-release-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Open a release PR
on:
workflow_dispatch:
inputs:
level:
description: Version bump level
required: true
type: choice
options:
- patch
jobs:
make-release-pr:
permissions:
id-token: write # Enable OIDC
pull-requests: write
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: chainguard-dev/actions/setup-gitsign@main
- name: Install cargo-release
uses: taiki-e/install-action@v1
with:
tool: cargo-release
- uses: cargo-bins/release-pr@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
version: ${{ inputs.level }}
crate_release_all: true
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,15 @@ please [take a look](https://www.cloudflare.com/careers/).
edition = "2021"
```

<!-- # Releasing
1. Trigger a workflow to create a release PR.
1. Review version changes and release notes.
1. Merge PR.
A GitHub release will be created and crates (`worker-sys`, `worker-macros`, `worker`)
will be published automatically. -->


# Contributing

Expand Down
3 changes: 3 additions & 0 deletions examples/hyper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name = "hyper-on-workers"
version = "0.1.0"
edition = "2021"

[package.metadata.release]
release = false

# https://github.com/rustwasm/wasm-pack/issues/1247
[package.metadata.wasm-pack.profile.release]
wasm-opt = false
Expand Down
3 changes: 3 additions & 0 deletions examples/router/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name = "router-on-workers"
version = "0.1.0"
edition = "2021"

[package.metadata.release]
release = false

# https://github.com/rustwasm/wasm-pack/issues/1247
[package.metadata.wasm-pack.profile.release]
wasm-opt = false
Expand Down
3 changes: 3 additions & 0 deletions examples/tokio-postgres/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ version = "0.1.0"
edition = "2021"
resolver = "2"

[package.metadata.release]
release = false

# https://github.com/rustwasm/wasm-pack/issues/1247
[package.metadata.wasm-pack.profile.release]
wasm-opt = false
Expand Down
3 changes: 3 additions & 0 deletions examples/tracing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name = "tracing-on-workers"
version = "0.1.0"
edition = "2021"

[package.metadata.release]
release = false

# https://github.com/rustwasm/wasm-pack/issues/1247
[package.metadata.wasm-pack.profile.release]
wasm-opt = false
Expand Down
3 changes: 2 additions & 1 deletion worker-build/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ repository = "https://github.com/cloudflare/workers-rs/tree/main/worker-build"
readme = "README.md"
description = "This is a tool to be used as a custom build command for a Cloudflare Workers `workers-rs` project."

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[package.metadata.release]
release = false

[dependencies]
anyhow = "1.0.71"
Expand Down
3 changes: 3 additions & 0 deletions worker-sandbox/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ name = "worker-sandbox"
version = "0.1.0"
license = "Apache-2.0"

[package.metadata.release]
release = false

[lib]
crate-type = ["cdylib", "rlib"]
path = "src/lib.rs"
Expand Down

0 comments on commit 5f078bf

Please sign in to comment.