-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 995 Bytes
/
Release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Release
on:
release:
types: [prereleased]
jobs:
vet:
uses: ./.github/workflows/vet.yml
test:
uses: ./.github/workflows/test.yml
build:
uses: ./.github/workflows/build.yml
e2e:
if: ${{ always() && contains(join(needs.*.result, ','), 'success') }} # if all needs jobs are successful
needs: [vet, test, build]
uses: ./.github/workflows/e2e.yml
push-to-ghcr:
if: ${{ always() && contains(join(needs.*.result, ','), 'success') }} # if all `needs` jobs are successful
needs: [vet, test, build, e2e]
secrets: inherit
uses: ./.github/workflows/push-to-ghcr.yml
push-manifest:
if: ${{ always() && contains(join(needs.*.result, ','), 'success') }} # if all `needs` jobs are successful
needs: [vet, test, build, e2e]
secrets: inherit
uses: ./.github/workflows/push-manifest.yml
cleanup:
if: ${{ always() }} # always run this job
needs: [push-to-ghcr]
secrets: inherit
uses: ./.github/workflows/cleanup.yml