Skip to content

Commit e1ca1d4

Browse files
authored
Add GH release + tagging steps in udp exporter release workflow (#273)
1 parent fa29383 commit e1ca1d4

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

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

+10-6
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,14 @@ jobs:
3535
cd exporters/xrayudp
3636
go test ./...
3737
38-
- name: Tag UDP Exporter module
38+
# Publish to GitHub releases
39+
- name: Create GH release with tag
40+
id: create_release
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
3943
run: |
40-
git tag exporters/xrayudp/v${{ inputs.udp-exporter-version }}
41-
42-
# TODO: Uncomment when we make the first release
43-
# - name: Publish tag for UDP Exporter module
44-
# run: git push --tags
44+
gh release create --target "$GITHUB_REF_NAME" \
45+
--title "Release exporters/xrayudp/v${{ inputs.udp-exporter-version }}" \
46+
--notes "Please refer to the [Changelog](https://github.com/aws-observability/aws-otel-go/blob/main/exporters/xrayudp/CHANGELOG.md) for more details" \
47+
--draft \
48+
"exporters/xrayudp/v${{ inputs.udp-exporter-version }}"

0 commit comments

Comments
 (0)