Skip to content

Commit 3af7d99

Browse files
committed
add gh release step
1 parent 884b8c9 commit 3af7d99

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/release-udp-exporter.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ env:
1111

1212
permissions:
1313
id-token: write
14+
contents: write
1415

1516
jobs:
1617
validate-udp-exporter-e2e-test:
@@ -71,3 +72,14 @@ jobs:
7172

7273
- name: Clear credentials
7374
run: rm -f ~/.gem/credentials
75+
76+
# Publish to GitHub releases
77+
- name: Create GH release
78+
id: create_release
79+
env:
80+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
81+
run: |
82+
gh release create --target "$GITHUB_REF_NAME" \
83+
--title "Release aws-distro-opentelemetry-exporter-xray-udp v${{ inputs.udp-exporter-version }}" \
84+
--draft \
85+
"v${{ inputs.udp-exporter-version }}"

0 commit comments

Comments
 (0)