Skip to content

Commit

Permalink
Show diff for prod site deployments (#407)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
emdobrin authored Apr 2, 2024
1 parent f60b944 commit 593f30c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
template: |
## What’s Changed
$CHANGES
15 changes: 14 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}'
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 }}

0 comments on commit 593f30c

Please sign in to comment.