Skip to content

nightly build

nightly build #376

Workflow file for this run

name: nightly build
on:
workflow_dispatch:
schedule:
- cron: '0 3 * * *'
jobs:
draft_release:
runs-on: ubuntu-latest
outputs:
date: ${{ steps.date.outputs.date }}
steps:
- name: Get current date
id: date
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
- name: create release
id: create_release
uses: softprops/action-gh-release@v2
with:
name: "${{ steps.date.outputs.date }}-nightly"
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: v${{ steps.date.outputs.date }}-nightly
draft: false
prerelease: true
linux:
needs: draft_release
uses: ./.github/workflows/build.yml
with:
runner: macos-14
target: linux
branch: develop
build_version: ${{ needs.draft_release.outputs.date }}-nightly
exe_name: cables-${{ needs.draft_release.outputs.date }}-nightly
tag_name: ${{ needs.draft_release.outputs.date }}-nightly
release_type: "prerelease"
secrets: inherit
win:
needs: draft_release
uses: ./.github/workflows/build.yml
with:
runner: macos-14
target: win
branch: develop
build_version: ${{ needs.draft_release.outputs.date }}-nightly
exe_name: cables-${{ needs.draft_release.outputs.date }}-nightly
tag_name: ${{ needs.draft_release.outputs.date }}-nightly
release_type: "prerelease"
secrets: inherit
mac:
needs: draft_release
uses: ./.github/workflows/build.yml
with:
runner: macos-14
target: mac
branch: develop
build_version: ${{ needs.draft_release.outputs.date }}-nightly
exe_name: cables-${{ needs.draft_release.outputs.date }}-nightly
tag_name: ${{ needs.draft_release.outputs.date }}-nightly
release_type: "prerelease"
sign: true
notarize: true
secrets: inherit