diff --git a/.github/workflows/cloud-formation-stack-status.yaml b/.github/workflows/cloud-formation-stack-status.yaml index f4db8a47..748da86b 100644 --- a/.github/workflows/cloud-formation-stack-status.yaml +++ b/.github/workflows/cloud-formation-stack-status.yaml @@ -234,3 +234,28 @@ jobs: -H "Content-Type: application/json" \ -H "Authorization: token $GITHUB_TOKEN" \ --data '{ "body": "The site has been deployed to https://'`cat published_domain_name.txt`'" }' + + job_4: + name: Generate the Changelog and post it to Slack + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Generate changelog + id: changelog + uses: metcalfc/changelog-generator@v1.0.0 + with: + myToken: ${{ secrets.GITHUB_TOKEN }} + - name: Create Release + id: create_release + uses: actions/create-release@latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + body: ${{ steps.changelog.outputs.changelog }} + draft: false + prerelease: false + + +