ci.github: add scheduled nightly builds

This commit is contained in:
bastimeyer 2020-03-17 20:24:42 +01:00
parent 82ae1a5525
commit 5d09f380d4
1 changed files with 5 additions and 3 deletions

View File

@ -1,8 +1,10 @@
name: Test, build and deploy
on:
- push
- pull_request
push: {}
pull_request: {}
schedule:
- cron: '0 0 * * *'
env:
STREAMLINK_DIST_DIR: ${{ github.workspace }}/dist
@ -85,7 +87,7 @@ jobs:
- name: Build
run: ./script/makeinstaller.sh "${{ steps.installer.outputs.filename }}"
- name: Upload artifact
if: github.repository == 'streamlink/streamlink' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
if: github.repository == 'streamlink/streamlink' && (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') || github.event_name == 'schedule')
uses: actions/upload-artifact@v2-preview
with:
name: ${{ steps.installer.outputs.filename }}-win32