Skip to content

Commit 957819c

Browse files
committed
Do nightly release
1 parent 364b2c1 commit 957819c

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
@@ -23,8 +23,12 @@ jobs:
2323
name: release
2424
needs: [ "release-workflow" ]
2525
runs-on: ubuntu-latest
26-
if: ${{ startsWith(github.ref, 'refs/tags/') }}
26+
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'schedule' }}
2727
steps:
28+
- name: Get current date
29+
id: date
30+
run: echo "NIGHTLY_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
31+
2832
- name: Checkout code
2933
uses: actions/checkout@v4
3034

@@ -52,3 +56,12 @@ jobs:
5256
files: |
5357
./out/*
5458
59+
- name: Release nightly
60+
if: ${{ github.event_name == 'schedule' }}
61+
uses: softprops/action-gh-release@v1
62+
with:
63+
tag_name: nightly-${{ env.NIGHTLY_DATE }}
64+
draft: false
65+
prerelease: true
66+
files: |
67+
./out/*

0 commit comments

Comments
 (0)