@@ -54,28 +54,18 @@ RUSTUP_DIST_SERVER=https://dev-static.rust-lang.org rustup update stable
54
54
55
55
### Master to beta
56
56
57
- Gather the relevant information and push the new Cargo branch:
57
+ Run this command in the [ simpleinfra] repository, while in a rust-lang/rust
58
+ checkout (branch doesn't matter):
58
59
59
60
``` sh
60
- git fetch git@github.com:rust-lang/rust
61
- BRANCH_POINT=` git log --merges --first-parent --format=" %P" -1 master -- src/version | awk ' {print($1)}' `
62
- NEW_BETA_VERSION=` git show $BRANCH_POINT :src/version`
63
- CARGO_SHA=` git rev-parse $BRANCH_POINT :src/tools/cargo`
64
-
65
- cd src/tools/cargo
66
- git branch rust-$NEW_BETA_VERSION $CARGO_SHA
67
- git push git@github.com:rust-lang/cargo rust-$NEW_BETA_VERSION
61
+ ../simpleinfra/release-scripts/master-to-beta.sh
68
62
```
69
63
70
- Temporarily disable banch protection on GitHub for the ` beta ` branch of the Rust
71
- repo. Promote rust-lang/rust's master branch to beta as you did for stable:
64
+ This script sets up the new rust-lang/cargo branch and force pushes the appropriate
65
+ commit to rust-lang/rust's beta branch.
72
66
73
- ``` sh
74
- git push git@github.com:rust-lang/rust $BRANCH_POINT :beta -f
75
- ```
76
-
77
- Re-enable branch protection on GitHub. Send a PR to the freshly created beta
78
- branch of rust-lang/rust which updates ` src/ci/channel ` to ` beta ` .
67
+ Once that's done, send a PR to the freshly created beta branch of rust-lang/rust
68
+ which updates ` src/ci/channel ` to ` beta ` .
79
69
80
70
## Master bootstrap update (T-2 day, Tuesday)
81
71
@@ -135,22 +125,12 @@ Decide on a time to do the release, T.
135
125
- Twitter [ @rustlang ] ( https://twitter.com/rustlang )
136
126
- [ Users forum] ( https://users.rust-lang.org/ )
137
127
138
- - ** T+5m** - Release and tag Cargo. In the rust-lang/rust repository on the
139
- ** stable branch** :
128
+ - ** T+5m** - Release and tag Cargo. From a rust-lang/rust checkout (script will
129
+ checkout the stable branch automatically), run the following script from
130
+ [ simpleinfra] .
140
131
141
132
``` sh
142
- # Remote "rust-lang" is github.com/rust-lang/rust.git
143
- git fetch rust-lang
144
- git checkout rust-lang/stable
145
- # Make sure submodules are at the correct revision.
146
- git submodule update
147
- cd src/tools/cargo
148
- # Publish to crates.io. This will publish internal dependencies first (if
149
- # necessary), then publish Cargo itself.
150
- ./publish.py
151
- CARGO_VERSION=$( cargo read-manifest | jq -r .version)
152
- git tag -u FA1BE5FE $CARGO_VERSION
153
- git push git@github.com:rust-lang/cargo.git $CARGO_VERSION
133
+ ../simpleinfra/release-scripts/tag-cargo.sh
154
134
```
155
135
156
136
- ** T+1hr** Send a PR to the beta branch running `./x.py run
0 commit comments