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:
parent
9a33784da3
commit
2a854972a1
27
.github/workflows/nightly-release.yml
vendored
Normal file
27
.github/workflows/nightly-release.yml
vendored
Normal 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
|
Loading…
x
Reference in New Issue
Block a user