From b1dac2bb6e5d8594ef11940584e4fe04e31434f3 Mon Sep 17 00:00:00 2001 From: Emilia Dobrin <33132425+emdobrin@users.noreply.github.com> Date: Fri, 15 Sep 2023 18:00:18 -0700 Subject: [PATCH] Update release tag step to include local date and publish automatically --- .github/workflows/deploy.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1495d26a09..9a86e5493b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -268,12 +268,16 @@ jobs: with: fastly-token: ${{ secrets.AIO_FASTLY_TOKEN }} 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: Deployment ${{ github.run_id }} + name: ${{ env.TAG_DATE }} - Deployment ${{ github.run_id }} tag: ${{ github.run_id }} version: ${{ github.run_id }} + publish: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}