1
0
mirror of https://github.com/nikoksr/notify.git synced 2025-01-22 03:09:35 +02:00

ci(release): add nightly release

This commit is contained in:
Niko Köser 2022-09-10 21:39:36 +02:00
parent 9a33784da3
commit 2a854972a1
No known key found for this signature in database
GPG Key ID: F3F28C118DAA6375

27
.github/workflows/nightly-release.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: Deploy Nightly
on:
push:
branches:
- main
schedule:
- cron: '0 0 * * *' # Run every day at 0 AM UTC
jobs:
nightly:
name: Deploy Nightly
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Get current date
id: get_date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: Create nightly release
id: create_release
uses: viperproject/create-nightly-release@v1
with:
tag_name: nightly
release_name: Nightly - ${{ steps.get_date.outputs.date }}
keep_num: 0
keep_tags: false