Switch from unmaintained release actions (#5644)
This commit is contained in:
parent
27d5df11a6
commit
62cc5ccea8
|
@ -138,25 +138,14 @@ jobs:
|
||||||
| perl -0pe 's/\n +/ /g' \
|
| perl -0pe 's/\n +/ /g' \
|
||||||
>> release-notes.txt
|
>> release-notes.txt
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create GitHub release
|
||||||
id: create_release
|
|
||||||
uses: actions/create-release@v1.1.4
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
run: |
|
||||||
tag_name: v${{ steps.set-versions.outputs.release-version }}
|
cp javaagent/build/libs/opentelemetry-javaagent-${{ steps.set-versions.outputs.release-version }}.jar opentelemetry-javaagent.jar
|
||||||
release_name: Version ${{ steps.set-versions.outputs.release-version }}
|
gh release create --target ${{ github.ref_name }} \
|
||||||
draft: true
|
--title "Version ${{ steps.set-versions.outputs.release-version }}" \
|
||||||
prerelease: false
|
--notes-file release-notes.txt \
|
||||||
body_path: release-notes.txt
|
--discussion-category announcements \
|
||||||
|
v${{ steps.set-versions.outputs.release-version }} \
|
||||||
- name: Upload Release Asset
|
opentelemetry-javaagent.jar
|
||||||
id: upload-release-asset
|
|
||||||
uses: actions/upload-release-asset@v1.0.2
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: javaagent/build/libs/opentelemetry-javaagent-${{ steps.set-versions.outputs.release-version }}.jar
|
|
||||||
asset_name: opentelemetry-javaagent.jar
|
|
||||||
asset_content_type: application/java-archive
|
|
||||||
|
|
23
RELEASING.md
23
RELEASING.md
|
@ -26,19 +26,12 @@ Open the [Release workflow](https://github.com/open-telemetry/opentelemetry-java
|
||||||
Press the "Run workflow" button, then select the release branch from the dropdown list,
|
Press the "Run workflow" button, then select the release branch from the dropdown list,
|
||||||
e.g. `v1.9.x`, and click the "Run workflow" button below that.
|
e.g. `v1.9.x`, and click the "Run workflow" button below that.
|
||||||
|
|
||||||
This triggers the release process, which builds the artifacts, publishes the artifacts, and creates
|
This workflow will publish the artifacts to maven central and will publish a github release with the
|
||||||
and pushes a git tag with the version number.
|
javaagent jar attached and release notes based on the change log.
|
||||||
|
|
||||||
Once the GitHub workflow completes, go to Github
|
|
||||||
[release page](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases),
|
|
||||||
find the draft release created by the release workflow, and
|
|
||||||
* Select the checkbox for "Create a discussion for this release"
|
|
||||||
* Press the "Publish release" button
|
|
||||||
|
|
||||||
## Patch Release
|
## Patch Release
|
||||||
|
|
||||||
All patch releases should include only bug-fixes, and must avoid
|
All patch releases should include only bug-fixes, and must avoid adding/modifying the public APIs.
|
||||||
adding/modifying the public APIs.
|
|
||||||
|
|
||||||
In general, patch releases are only made for bug-fixes for the following types of issues:
|
In general, patch releases are only made for bug-fixes for the following types of issues:
|
||||||
* Regressions
|
* Regressions
|
||||||
|
@ -59,14 +52,8 @@ Open the [Release workflow](https://github.com/open-telemetry/opentelemetry-java
|
||||||
Press the "Run workflow" button, then select the release branch from the dropdown list,
|
Press the "Run workflow" button, then select the release branch from the dropdown list,
|
||||||
e.g. `v1.9.x`, and click the "Run workflow" button below that.
|
e.g. `v1.9.x`, and click the "Run workflow" button below that.
|
||||||
|
|
||||||
This triggers the release process, which builds the artifacts, publishes the artifacts, and creates
|
This workflow will publish the artifacts to maven central and will publish a github release with the
|
||||||
and pushes a git tag with the version number.
|
javaagent jar attached and release notes based on the change log.
|
||||||
|
|
||||||
Once the GitHub workflow completes, go to Github
|
|
||||||
[release page](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases),
|
|
||||||
find the draft release created by the release workflow, and
|
|
||||||
* Select the checkbox for "Create a discussion for this release"
|
|
||||||
* Press the "Publish release" button
|
|
||||||
|
|
||||||
After making the release:
|
After making the release:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue