Skip to content

Commit 83e869f

Browse files
committed
Do nightly release
1 parent 77e333e commit 83e869f

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/release.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff 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/*

0 commit comments

Comments
 (0)