From bd17854e0ea8ca55b36a7eeab282c8059edf9f16 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Fri, 8 Sep 2023 16:49:31 -0500 Subject: [PATCH] ci: reuse because I'm lazy --- .github/.github/workflows/build.yml | 9 +++++++++ .github/.github/workflows/nightly.yml | 24 ++++++++++++++++++++++++ .github/.github/workflows/release.yml | 17 +++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 .github/.github/workflows/build.yml create mode 100644 .github/.github/workflows/nightly.yml create mode 100644 .github/.github/workflows/release.yml diff --git a/.github/.github/workflows/build.yml b/.github/.github/workflows/build.yml new file mode 100644 index 0000000..5792b8b --- /dev/null +++ b/.github/.github/workflows/build.yml @@ -0,0 +1,9 @@ +name: ⚙️ Build Binaries + +on: + workflow_dispatch: + workflow_call: + +jobs: + build-artifact: + uses: daylinmorgan/actions/.github/workflows/build-nim-forge.yml@main diff --git a/.github/.github/workflows/nightly.yml b/.github/.github/workflows/nightly.yml new file mode 100644 index 0000000..9b8d5a9 --- /dev/null +++ b/.github/.github/workflows/nightly.yml @@ -0,0 +1,24 @@ +name: 🌙 Nightly Release + +on: + workflow_dispatch: + schedule: + - cron: '0 2 * * *' + +permissions: + contents: write + +jobs: + check-commits: + uses: daylinmorgan/actions/.github/workflows/check-commits.yml@main + with: + since: "24 hours" + + build-artifacts: + needs: check-commits + if: ${{ needs.check-commits.outputs.quit != 'true' }} + uses: daylinmorgan/actions/.github/workflows/build-nim-forge.yml@main + + generate-release: + needs: build-artifacts + uses: daylinmorgan/actions/.github/workflows/nightly.yml@main diff --git a/.github/.github/workflows/release.yml b/.github/.github/workflows/release.yml new file mode 100644 index 0000000..c4834b4 --- /dev/null +++ b/.github/.github/workflows/release.yml @@ -0,0 +1,17 @@ +name: 🚀 Release + +on: + push: + tags: + - 'v*.*' + +permissions: + contents: write + +jobs: + build-artifacts: + uses: daylinmorgan/actions/.github/workflows/build-nim-forge.yml@main + + create-release: + needs: build-artifacts + uses: daylinmorgan/actions/.github/workflows/release.yml@main