surrealpatch/.github/workflows/nightly.yml

40 lines
993 B
YAML
Raw Normal View History

2023-12-11 13:58:43 +00:00
# This workflow triggers nightly releases
2022-09-22 13:56:27 +00:00
name: Nightly release
run-name: "Nightly release '${{ inputs.git-ref || github.ref_name }}' (publish: ${{ inputs.publish || github.event_name == 'schedule' }})"
2022-09-22 13:56:27 +00:00
on:
workflow_dispatch:
inputs:
git-ref:
required: true
type: string
description: "The github ref of this nightly version (i.e. main, 1234567)"
default: main
publish:
required: false
type: boolean
default: false
description: "Publish the nightly release"
2022-09-22 13:56:27 +00:00
schedule:
- cron: '0 0 * * *'
defaults:
run:
shell: bash
2023-12-11 13:58:43 +00:00
permissions:
contents: write
2022-09-22 13:56:27 +00:00
jobs:
release:
name: Prepare nightly release
uses: ./.github/workflows/reusable_publish_version.yml
with:
2023-12-11 13:58:43 +00:00
environment: nightly
extra-features: parser2,ml2,storage-surrealkv
git-ref: ${{ inputs.git-ref || github.ref_name }}
publish: ${{ inputs.publish || github.event_name == 'schedule' }}
secrets: inherit