File tree Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Expand file tree Collapse file tree 1 file changed +22
-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 : ' 20 12 * * *'
1515
1616env :
1717 GHC_VERSION : 9.6.7
@@ -796,8 +796,18 @@ 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+
805+ - name : Nightly tag
806+ if : ${{ github.event_name == 'schedule' }}
807+ run : |
808+ git tag nightly-${{ env.NIGHTLY_DATE }}
809+ git push origin nightly-${{ env.NIGHTLY_DATE }}
810+
801811 - name : Checkout code
802812 uses : actions/checkout@v4
803813
@@ -819,9 +829,19 @@ jobs:
819829 shell : bash
820830
821831 - name : Release
832+ if : startsWith(github.ref, 'refs/tags/')
822833 uses : softprops/action-gh-release@v1
823834 with :
824835 draft : true
825836 files : |
826837 ./out/*
827838
839+ - name : Release nightly
840+ if : ${{ github.event_name == 'schedule' }}
841+ uses : softprops/action-gh-release@v1
842+ with :
843+ name : nightly-${{ env.NIGHTLY_DATE }}
844+ draft : false
845+ prerelease : true
846+ files : |
847+ ./out/*
You can’t perform that action at this time.
0 commit comments