Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
only make release on first day of each month
Browse files Browse the repository at this point in the history
  • Loading branch information
777arc authored Dec 31, 2023
1 parent 288e6d9 commit 530ec2f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,11 @@ jobs:

- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
run: echo "::set-output name=date::$(date +'%Y-%m-%d')" && echo "::set-output name=day::$(day +'%d')"

- name: Create Release with zip file
- name: Create Release with zip file only on first day of each month
uses: softprops/action-gh-release@v1
if: ${{ steps.date.outputs.day == '01' }}
with:
files: html.zip
tag_name: ${{ steps.date.outputs.date }}

0 comments on commit 530ec2f

Please sign in to comment.