Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,15 @@ jobs:
ga-sdk-static-${{ inputs.tag_name }}.zip
ga-sdk-shared-${{ inputs.tag_name }}.zip
ga-sdk-static-no-deps-${{ inputs.tag_name }}.zip


notify:
name: Slack notification
needs: release
uses: GameAnalytics/sdk-release-notify/.github/workflows/notify.yml@main
with:
sdk_name: C++ SDK
tag: ${{ inputs.tag_name }}
releaser: ${{ github.actor }}
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
32 changes: 32 additions & 0 deletions .github/workflows/slack-release-notify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Posts every published release of this repo to Slack (#public-sdk-releases).
# Logic lives in GameAnalytics/sdk-release-notify; this file only names the SDK.
#
# To re-post an existing release (pilot, or Slack was down): Actions tab →
# "Slack release notification" → Run workflow → enter the tag.

name: Slack release notification

on:
release:
types: [published]
workflow_dispatch:
inputs:
tag:
description: Existing release tag to (re)post, e.g. 1.2.3
required: true
type: string

jobs:
notify:
# Skip pre-releases, and skip releases created by a bot: repos whose
# releases are cut by a workflow post from that workflow instead, so the
# real person can be credited.
if: >-
github.event_name == 'workflow_dispatch' ||
(!github.event.release.prerelease && !endsWith(github.event.release.author.login, '[bot]'))
uses: GameAnalytics/sdk-release-notify/.github/workflows/notify.yml@main
with:
sdk_name: C++ SDK
tag: ${{ inputs.tag }}
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
Loading