Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.

Commit 59357e5

Browse files
authored
Merge pull request #108 from codecov/dana/publish-release
send a pub/sub message with the release tag to publish the release
2 parents d4d5b40 + d53881b commit 59357e5

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/release_flow.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,25 @@ jobs:
107107
with:
108108
delete_release: true
109109
tag_name: ${{ github.ref_name }}
110+
111+
112+
publish_release:
113+
name: Publish release
114+
needs: buildassets
115+
runs-on: ubuntu-latest
116+
permissions:
117+
contents: 'read'
118+
id-token: 'write'
119+
steps:
120+
- id: 'auth'
121+
name: 'Authenticate to Google Cloud'
122+
uses: 'google-github-actions/[email protected]'
123+
with:
124+
create_credentials_file: 'true'
125+
workload_identity_provider: ${{ secrets.CODECOV_GCP_WIDP }}
126+
service_account: ${{ secrets.CODECOV_GCP_WIDSA }}
127+
128+
# Publish the release tag to a Pub/Sub topic
129+
- name: Publish a message to a Pub/Sub topic
130+
run: |
131+
gcloud pubsub topics publish ${{ secrets.GCLOUD_UPLOADER_PUBSUB_TOPIC }} --message '{"release":"'"${{ github.ref_name }}"'", "latest":true}'

0 commit comments

Comments
 (0)