ci: reuse because I'm lazy

This commit is contained in:
Daylin Morgan 2023-09-08 16:49:31 -05:00
parent 8521599766
commit bd17854e0e
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F
3 changed files with 50 additions and 0 deletions

9
.github/.github/workflows/build.yml vendored Normal file
View file

@ -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

24
.github/.github/workflows/nightly.yml vendored Normal file
View file

@ -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

17
.github/.github/workflows/release.yml vendored Normal file
View file

@ -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