Skip to content

Release Announcement #5

Release Announcement

Release Announcement #5

name: Release Announcement
on: workflow_dispatch
jobs:
announceReleaseToSocialMedia:
name: Announce Release to Social Media
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get Version
id: versioning
uses: paulhatch/[email protected]
with:
version_format: "${major}.${minor}.${patch}"
minor_pattern: "(MINOR)"
bump_each_commit: true
debug: true
- name: Prepare Announcement
id: prepare
shell: bash
env:
VERSION: v${{ steps.versioning.outputs.version }}
run: |
RELEASE_NOTES="$(cat fastlane/metadata/en-US/release_notes.txt)"
ANNOUNCEMENT="Released CGS $VERSION!
$RELEASE_NOTES"
printf "$ANNOUNCEMENT"
export ANNOUNCEMENT
echo 'ANNOUNCEMENT<<EOF' >> $GITHUB_OUTPUT
echo "$ANNOUNCEMENT" >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
- name: Discord Announcement
if: github.ref == 'refs/heads/main'
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/[email protected]
with:
args: ${{ steps.prepare.outputs.ANNOUNCEMENT }}