From 46d4be9d30e30ae497dd8b0ab6d3406fdcd4a142 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20Maih=C3=B6fer?= Date: Wed, 3 Jul 2024 16:59:38 +0200 Subject: [PATCH] workflow --- .github/workflows/nightly.yml | 54 +++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/nightly.yml diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml new file mode 100644 index 0000000..241b9a7 --- /dev/null +++ b/.github/workflows/nightly.yml @@ -0,0 +1,54 @@ +name: nightly build + +on: + workflow_dispatch: + schedule: + - cron: '0 3 * * *' + +jobs: + draft_release: + runs-on: ubuntu-latest + steps: + - name: Get current date + id: date + run: echo "::set-output name=date::$(date +'%Y-%m-%d')" + - name: create release + id: create_release + uses: softprops/action-gh-release@v2 + with: + name: "${{ steps.date.outputs.date }}-nightly" + token: ${{ secrets.GITHUB_TOKEN }} + draft: false + prerelease: true + linux: + uses: ./.github/workflows/build.yml + with: + runner: macos-14 + target: linux + branch: develop + build_version: ${{ steps.date.outputs.date }}-nightly + exe_name: cables-${{ steps.date.outputs.date }}-nightly + tag_name: v${{ steps.date.outputs.date }} + secrets: inherit + win: + uses: ./.github/workflows/build.yml + with: + runner: macos-14 + target: win + branch: develop + build_version: ${{ steps.date.outputs.date }}-nightly + exe_name: cables-${{ steps.date.outputs.date }}-nightly + tag_name: v${{ steps.date.outputs.date }} + secrets: inherit + mac: + uses: ./.github/workflows/build.yml + with: + runner: macos-14 + target: mac + branch: develop + build_version: ${{ steps.date.outputs.date }}-nightly + exe_name: cables-${{ steps.date.outputs.date }}-nightly + tag_name: v${{ steps.date.outputs.date }} + sign: true + notarize: true + secrets: inherit