Skip to content

Release Announcement #17

Release Announcement

Release Announcement #17

Workflow file for this run

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@v3
with:
fetch-depth: 0
- name: Get Version
id: versioning
uses: paulhatch/[email protected]
with:
version_format: "${major}.${minor}"
bump_each_commit: 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)"
export ANNOUNCEMENT="Released CGS $VERSION! $RELEASE_NOTES"
echo "$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 }}