File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -808,8 +808,12 @@ jobs:
808808 , "test-freebsd-x86_64"
809809 ]
810810 runs-on : ubuntu-latest
811- if : startsWith(github.ref, 'refs/tags/')
811+ if : ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'schedule' }}
812812 steps :
813+ - name : Get current date
814+ id : date
815+ run : echo "NIGHTLY_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
816+
813817 - name : Checkout code
814818 uses : actions/checkout@v4
815819
@@ -838,3 +842,12 @@ jobs:
838842 files : |
839843 ./out/*
840844
845+ - name : Release nightly
846+ if : ${{ github.event_name == 'schedule' }}
847+ uses : softprops/action-gh-release@v1
848+ with :
849+ tag_name : nightly-${{ env.NIGHTLY_DATE }}
850+ draft : false
851+ prerelease : true
852+ files : |
853+ ./out/*
You can’t perform that action at this time.
0 commit comments