Skip to content

Commit 3aa3a64

Browse files
committed
Execute nightly releases
1 parent 0987cc9 commit 3aa3a64

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/release.yaml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
branches:
1212
- master
1313
schedule:
14-
- cron: '0 2 * * *'
14+
- cron: '0 0 * * *'
1515

1616
env:
1717
GHC_VERSION: 9.6.7
@@ -796,8 +796,12 @@ jobs:
796796
, "test-freebsd-x86_64"
797797
]
798798
runs-on: ubuntu-latest
799-
if: startsWith(github.ref, 'refs/tags/')
799+
if: startsWith(github.ref, 'refs/tags/') || ${{ github.event_name == 'schedule' }}
800800
steps:
801+
- name: Get current date
802+
id: date
803+
run: echo "NIGHTLY_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
804+
801805
- name: Checkout code
802806
uses: actions/checkout@v4
803807

@@ -819,9 +823,19 @@ jobs:
819823
shell: bash
820824

821825
- name: Release
826+
if: startsWith(github.ref, 'refs/tags/')
822827
uses: softprops/action-gh-release@v1
823828
with:
824829
draft: true
825830
files: |
826831
./out/*
827832
833+
- name: Release nightly
834+
if: ${{ github.event_name == 'schedule' }}
835+
uses: softprops/action-gh-release@v1
836+
with:
837+
tag_name: nightly-${{ env.NIGHTLY_DATE }}
838+
draft: false
839+
prerelease: true
840+
files: |
841+
./out/*

0 commit comments

Comments
 (0)