Skip to content

Commit 5d2790f

Browse files
committed
Do nightly release
1 parent 81be964 commit 5d2790f

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

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

0 commit comments

Comments
 (0)