Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 960d0a3

Browse files
author
alrex
authored
chore: updating release markdown and script to fetch master (open-telemetry#743)
1 parent f7a7f64 commit 960d0a3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

RELEASING.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
This document explains how to publish all OT modules at version x.y.z. Ensure that you’re following semver when choosing a version number.
33

44
Release Process:
5+
* [Checkout a clean repo](#checkout-a-clean-repo)
56
* [Create a new branch](#create-a-new-branch)
67
* [Open a Pull Request](#open-a-pull-request)
78
* [Create a Release](#Create-a-Release)
@@ -10,6 +11,8 @@ Release Process:
1011
* [Check PyPI](#Check-PyPI)
1112
* [Troubleshooting](#troubleshooting)
1213

14+
## Checkout a clean repo
15+
- To avoid pushing untracked changes, check out the repo in a new dir
1316

1417
## Create a new branch
1518
The following script does the following:
@@ -74,7 +77,6 @@ git commit -m
7477

7578
If for some reason the action failed, do it manually:
7679

77-
- To avoid pushing untracked changes, check out the repo in a new dir
7880
- Switch to the release branch (important so we don't publish packages with "dev" versions)
7981
- Build distributions with `./scripts/build.sh`
8082
- Delete distributions we don't want to push (e.g. `testutil`)

scripts/prepare_release.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash -x
1+
#!/bin/bash
22
#
33
# This script:
44
# 1. parses the version number from the branch name
@@ -73,6 +73,7 @@ function update_changelog() {
7373
}
7474

7575
# create the release branch
76+
git fetch origin master
7677
git checkout master
7778
git reset --hard origin/master
7879
git checkout -b release/${VERSION}

0 commit comments

Comments
 (0)