From 593f30cb4739c1ed9ffc97a183ca3596eb3dfcba Mon Sep 17 00:00:00 2001 From: Emilia Dobrin <33132425+emdobrin@users.noreply.github.com> Date: Mon, 1 Apr 2024 18:26:32 -0700 Subject: [PATCH] Show diff for prod site deployments (#407) * tag deployments and show diff * Update release tag step to include local date and publish automatically * Add date to tag name * Fix lint warning on yml start file * quotes * quotes * update tag name --- .github/release-drafter.yml | 5 +++++ .github/workflows/deploy.yml | 15 ++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 .github/release-drafter.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000000..0038765a36 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,5 @@ +--- +template: | + ## What’s Changed + + $CHANGES diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0a75ac0902..1f20494860 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -267,4 +267,17 @@ jobs: uses: icaraps/gatsby-fastly-purge-action@master with: fastly-token: ${{ secrets.AIO_FASTLY_TOKEN }} - fastly-url: '${{ secrets.AIO_FASTLY_PROD_URL }}${{ needs.set-state.outputs.path_prefix }}' \ No newline at end of file + fastly-url: '${{ secrets.AIO_FASTLY_PROD_URL }}${{ needs.set-state.outputs.path_prefix }}' + - name: Get current date for release tag + id: date + run: echo "TAG_DATE=$(TZ="America/Los_Angeles" date +'%Y-%m-%d')" >> "$GITHUB_ENV" + - name: Create GitHub release tag + id: create_release + uses: release-drafter/release-drafter@v5 + with: + name: ${{ env.TAG_DATE }} - Deployment ${{ github.run_id }} + tag: ${{ env.TAG_DATE }}-${{ github.run_id }} + version: ${{ github.run_id }} + publish: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}