1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-09 15:35:24 +02:00

chore: cleanup actions and allow reuse + pr template (#1637)

* cleanup actions and allow reuse

* add PR template
This commit is contained in:
Hayden 2022-09-10 10:58:02 -08:00 committed by GitHub
parent 2df791b80b
commit e989651336
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 226 additions and 216 deletions

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

@ -0,0 +1,48 @@
name: Docker Build Production
on:
release:
types: [published]
jobs:
backend-tests:
name: "Backend Server Tests"
uses: hay-kot/mealie/.github/workflows/partial-backend.yml@mealie-next
frontend-tests:
name: "Frontend and End-to-End Tests"
uses: hay-kot/mealie/.github/workflows/partial-frontend.yml@mealie-next
get-release:
name: "Get Releave Tag"
runs-on: ubuntu-latest
needs:
- backend-tests
- frontend-tests
outputs:
tag: ${{ steps.get-tag.outputs.tag }}
steps:
- uses: oprypin/find-latest-tag@v1
with:
repository: hay-kot/mealie # The repository to scan.
releases-only: true # We know that all relevant tags have a GitHub release for them.
build-release:
name: Build Tagged Release
uses: hay-kot/mealie/.github/workflows/partial-builder.yml@mealie-next
needs:
- get-release
with:
tag: ${{ jobs.get-release.outputs.tag }}
notify-discord:
name: Notify Discord
needs:
- build-release
runs-on: ubuntu-latest
steps:
- name: Discord notification
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_RELEASE_WEBHOOK }}
uses: Ilshidur/action-discord@0.3.2
with:
args: "🚀 Version {{ EVENT_PAYLOAD.release.tag_name }} of Mealie has been released. See the release notes https://github.com/hay-kot/mealie/releases/tag/{{ EVENT_PAYLOAD.release.tag_name }}"