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 }}