mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 21:13:37 +00:00
Update xtask promote and release instructions
This commit is contained in:
parent
e0ff4befda
commit
58c3a5634f
2 changed files with 6 additions and 11 deletions
|
@ -210,7 +210,8 @@ Release process is handled by `release`, `dist` and `promote` xtasks, `release`
|
||||||
./rust-rust-analyzer # Note the name!
|
./rust-rust-analyzer # Note the name!
|
||||||
```
|
```
|
||||||
|
|
||||||
Additionally, it assumes that the remote for `rust-analyzer` is called `upstream` (I use `origin` to point to my fork).
|
The remote for `rust-analyzer` must be called `upstream` (I use `origin` to point to my fork).
|
||||||
|
In addition, for `xtask promote` (see below), `rust-rust-analyzer` must have a `rust-analyzer` remote pointing to this repository on GitHub.
|
||||||
|
|
||||||
`release` calls the GitHub API calls to scrape pull request comments and categorize them in the changelog.
|
`release` calls the GitHub API calls to scrape pull request comments and categorize them in the changelog.
|
||||||
This step uses the `curl` and `jq` applications, which need to be available in `PATH`.
|
This step uses the `curl` and `jq` applications, which need to be available in `PATH`.
|
||||||
|
@ -225,13 +226,13 @@ Release steps:
|
||||||
* push it to `upstream`. This triggers GitHub Actions which:
|
* push it to `upstream`. This triggers GitHub Actions which:
|
||||||
* runs `cargo xtask dist` to package binaries and VS Code extension
|
* runs `cargo xtask dist` to package binaries and VS Code extension
|
||||||
* makes a GitHub release
|
* makes a GitHub release
|
||||||
* pushes VS Code extension to the marketplace
|
* publishes the VS Code extension to the marketplace
|
||||||
* call the GitHub API for PR details
|
* call the GitHub API for PR details
|
||||||
* create a new changelog in `rust-analyzer.github.io`
|
* create a new changelog in `rust-analyzer.github.io`
|
||||||
3. While the release is in progress, fill in the changelog
|
3. While the release is in progress, fill in the changelog
|
||||||
4. Commit & push the changelog
|
4. Commit & push the changelog
|
||||||
5. Tweet
|
5. Tweet
|
||||||
6. Inside `rust-analyzer`, run `cargo xtask promote` -- this will create a PR to rust-lang/rust updating rust-analyzer's submodule.
|
6. Inside `rust-analyzer`, run `cargo xtask promote` -- this will create a PR to rust-lang/rust updating rust-analyzer's subtree.
|
||||||
Self-approve the PR.
|
Self-approve the PR.
|
||||||
|
|
||||||
If the GitHub Actions release fails because of a transient problem like a timeout, you can re-run the job from the Actions console.
|
If the GitHub Actions release fails because of a transient problem like a timeout, you can re-run the job from the Actions console.
|
||||||
|
|
|
@ -77,18 +77,12 @@ impl flags::Promote {
|
||||||
cmd!(sh, "git switch master").run()?;
|
cmd!(sh, "git switch master").run()?;
|
||||||
cmd!(sh, "git fetch upstream").run()?;
|
cmd!(sh, "git fetch upstream").run()?;
|
||||||
cmd!(sh, "git reset --hard upstream/master").run()?;
|
cmd!(sh, "git reset --hard upstream/master").run()?;
|
||||||
cmd!(sh, "git submodule update --recursive").run()?;
|
|
||||||
|
|
||||||
let date = date_iso(sh)?;
|
let date = date_iso(sh)?;
|
||||||
let branch = format!("rust-analyzer-{date}");
|
let branch = format!("rust-analyzer-{date}");
|
||||||
cmd!(sh, "git switch -c {branch}").run()?;
|
cmd!(sh, "git switch -c {branch}").run()?;
|
||||||
{
|
cmd!(sh, "git subtree pull -P src/tools/rust-analyzer rust-analyzer master").run()?;
|
||||||
let _dir = sh.push_dir("src/tools/rust-analyzer");
|
|
||||||
cmd!(sh, "git fetch origin").run()?;
|
|
||||||
cmd!(sh, "git reset --hard origin/release").run()?;
|
|
||||||
}
|
|
||||||
cmd!(sh, "git add src/tools/rust-analyzer").run()?;
|
|
||||||
cmd!(sh, "git commit -m':arrow_up: rust-analyzer'").run()?;
|
|
||||||
if !self.dry_run {
|
if !self.dry_run {
|
||||||
cmd!(sh, "git push -u origin {branch}").run()?;
|
cmd!(sh, "git push -u origin {branch}").run()?;
|
||||||
cmd!(
|
cmd!(
|
||||||
|
|
Loading…
Reference in a new issue