Skip to content

Commit

Permalink
Update release tag step to include local date and publish automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
emdobrin authored Sep 16, 2023
1 parent d0a4469 commit b1dac2b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit b1dac2b

Please sign in to comment.