Skip to content

Commit ff647c9

Browse files
committed
enable auto publish
1 parent a19bf16 commit ff647c9

File tree

1 file changed

+25
-24
lines changed

1 file changed

+25
-24
lines changed

.github/workflows/release-build.yml

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Release Build
22
on:
33
workflow_dispatch:
4+
45
inputs:
56
version:
67
description: The version to tag the release with, e.g., 1.2.0, 1.2.1-alpha.1
@@ -119,27 +120,27 @@ jobs:
119120
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
120121

121122

122-
- name: Get SHA256 checksum of release artifact
123-
id: get_sha256
124-
run: |
125-
cp "otelagent/build/libs/aws-opentelemetry-agent-${{ github.event.inputs.version }}.jar" ${{ env.ARTIFACT_NAME }}
126-
shasum -a 256 ${{ env.ARTIFACT_NAME }} > ${{ env.ARTIFACT_NAME }}.sha256
127-
128-
- name: Create release
129-
env:
130-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
131-
run: |
132-
# Download layer.zip from existing latest tagged SDK release note
133-
LATEST_SDK_VERSION=$(gh release list --repo "aws-observability/aws-otel-java-instrumentation" --json tagName,isLatest -q 'map(select(.isLatest==true)) | .[0].tagName')
134-
mkdir -p layer_artifact
135-
gh release download "$LATEST_SDK_VERSION" --repo "aws-observability/aws-otel-java-instrumentation" --pattern "layer.zip" --dir layer_artifact
136-
shasum -a 256 layer_artifact/layer.zip > layer_artifact/layer.zip.sha256
137-
138-
gh release create --target "$GITHUB_REF_NAME" \
139-
--title "Release v${{ github.event.inputs.version }}" \
140-
--draft \
141-
"v${{ github.event.inputs.version }}" \
142-
${{ env.ARTIFACT_NAME }} \
143-
${{ env.ARTIFACT_NAME }}.sha256 \
144-
layer_artifact/layer.zip \
145-
layer_artifact/layer.zip.sha256
123+
# - name: Get SHA256 checksum of release artifact
124+
# id: get_sha256
125+
# run: |
126+
# cp "otelagent/build/libs/aws-opentelemetry-agent-${{ github.event.inputs.version }}.jar" ${{ env.ARTIFACT_NAME }}
127+
# shasum -a 256 ${{ env.ARTIFACT_NAME }} > ${{ env.ARTIFACT_NAME }}.sha256
128+
129+
# - name: Create release
130+
# env:
131+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
132+
# run: |
133+
# # Download layer.zip from existing latest tagged SDK release note
134+
# LATEST_SDK_VERSION=$(gh release list --repo "aws-observability/aws-otel-java-instrumentation" --json tagName,isLatest -q 'map(select(.isLatest==true)) | .[0].tagName')
135+
# mkdir -p layer_artifact
136+
# gh release download "$LATEST_SDK_VERSION" --repo "aws-observability/aws-otel-java-instrumentation" --pattern "layer.zip" --dir layer_artifact
137+
# shasum -a 256 layer_artifact/layer.zip > layer_artifact/layer.zip.sha256
138+
#
139+
# gh release create --target "$GITHUB_REF_NAME" \
140+
# --title "Release v${{ github.event.inputs.version }}" \
141+
# --draft \
142+
# "v${{ github.event.inputs.version }}" \
143+
# ${{ env.ARTIFACT_NAME }} \
144+
# ${{ env.ARTIFACT_NAME }}.sha256 \
145+
# layer_artifact/layer.zip \
146+
# layer_artifact/layer.zip.sha256

0 commit comments

Comments
 (0)