Don't automatically push docs in release since not allowed by branch … (#2178)

* Don't automatically push docs in release since not allowed by branch protection.

* Fix readme
This commit is contained in:
Anuraag Agrawal 2020-12-03 11:48:03 +09:00 committed by GitHub
parent d7ab0addfa
commit c2861b4dd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 13 deletions

View File

@ -20,13 +20,7 @@ jobs:
with:
job-id: jdk11
remote-build-cache-proxy-enabled: false
arguments: updateVersionInDocs build --stacktrace -Prelease.version=${{ github.event.inputs.version }}
- name: Setup git name
run: |
git config user.name github-actions
git config user.email github-actions@github.com
- name: Commit README updates
run: git commit -am "Releasing ${{ github.event.inputs.version }}"
arguments: build --stacktrace -Prelease.version=${{ github.event.inputs.version }}
- name: Publish artifacts
run: ./gradlew final --stacktrace -Prelease.version=${{ github.event.inputs.version }}
env:
@ -34,5 +28,3 @@ jobs:
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }}
GRGIT_USER: ${{ github.actor }}
GRGIT_PASS: ${{ secrets.GITHUB_TOKEN }}
- name: Push README updates
run: git push

View File

@ -28,12 +28,16 @@ for a list of major changes since last release.
## Update release versions in documentations and CHANGELOG files
After releasing is done, you need to update
After releasing is done, you need to first update the docs.
```
./gradlew updateVersionInDocs -Prelease.version=x.y.z
```
Next, update the
[CHANGELOG.md](https://github.com/open-telemetry/opentelemetry-java/blob/master/CHANGELOG.md).
Create a PR to mark the new release in
[CHANGELOG.md](https://github.com/census-instrumentation/opencensus-java/blob/master/CHANGELOG.md)
on master branch.
Create a PR to mark the new release in README.md and CHANGELOG.md on the master branch.
## Patch Release