Skip to content

Commit 5f2693f

Browse files
committed
Merge branch 'release-workflow' of https://github.com/lzchen/opentelemetry-python
2 parents 15d7c63 + 30ac683 commit 5f2693f

File tree

3 files changed

+34
-40
lines changed

3 files changed

+34
-40
lines changed

.github/workflows/publish.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,37 @@ jobs:
9696
--discussion-category announcements \
9797
v$STABLE_VERSION
9898
99+
- uses: actions/setup-python@v1
100+
with:
101+
python-version: '3.7'
102+
103+
- name: Build wheels
104+
run: ./scripts/build.sh
105+
106+
- name: Install twine
107+
run: |
108+
pip install twine
109+
110+
# The step below publishes to testpypi in order to catch any issues
111+
# with the package configuration that would cause a failure to upload
112+
# to pypi. One example of such a failure is if a classifier is
113+
# rejected by pypi (e.g "3 - Beta"). This would cause a failure during the
114+
# middle of the package upload causing the action to fail, and certain packages
115+
# might have already been updated, this would be bad.
116+
- name: Publish to TestPyPI
117+
env:
118+
TWINE_USERNAME: '__token__'
119+
TWINE_PASSWORD: ${{ secrets.test_pypi_token }}
120+
run: |
121+
twine upload --repository testpypi --skip-existing --verbose dist/*
122+
123+
- name: Publish to PyPI
124+
env:
125+
TWINE_USERNAME: '__token__'
126+
TWINE_PASSWORD: ${{ secrets.pypi_password }}
127+
run: |
128+
twine upload --skip-existing --verbose dist/*
129+
99130
- uses: actions/checkout@v3
100131
with:
101132
# the step below is creating a pull request against main

RELEASING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22

33
## Preparing a new major or minor release
44

5-
* Run the [Prepare release branch workflow](https://github.com/trask/repository-template/actions/workflows/prepare-release-branch.yml).
5+
* Run the [Prepare release branch workflow](https://github.com/open-telemetry/opentelemetry-python/actions/workflows/prepare-release-branch.yml).
66
* Press the "Run workflow" button, and leave the default branch `main` selected.
77
* Review and merge the two pull requests that it creates
88
(one is targeted to the release branch and one is targeted to `main`).
99

1010
## Preparing a new patch release
1111

1212
* Backport pull request(s) to the release branch.
13-
* Run the [Backport workflow](https://github.com/trask/repository-template/actions/workflows/backport.yml).
13+
* Run the [Backport workflow](https://github.com/open-telemetry/opentelemetry-python/actions/workflows/backport.yml).
1414
* Press the "Run workflow" button, then select the release branch from the dropdown list,
1515
e.g. `release/v1.9.x`, then enter the pull request number that you want to backport,
1616
then click the "Run workflow" button below that.
1717
* Review and merge the backport pull request that it generates.
1818
* Merge a pull request to the release branch updating the `CHANGELOG.md`.
1919
* The heading for the unreleased entries should be `## Unreleased`.
20-
* Run the [Prepare patch release workflow](https://github.com/trask/repository-template/actions/workflows/prepare-patch-release.yml).
20+
* Run the [Prepare patch release workflow](https://github.com/open-telemetry/opentelemetry-python/actions/workflows/prepare-patch-release.yml).
2121
* Press the "Run workflow" button, then select the release branch from the dropdown list,
2222
e.g. `release/v1.9.x`, and click the "Run workflow" button below that.
2323
* Review and merge the pull request that it creates for updating the version.

0 commit comments

Comments
 (0)