File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 1111 branches :
1212 - master
1313 schedule :
14- - cron : ' 0 2 * * *'
14+ - cron : ' 0 0 * * *'
1515
1616env :
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/*
You can’t perform that action at this time.
0 commit comments