-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (33 loc) · 1.04 KB
/
build_on_push_pr.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
33
34
35
36
37
38
name: Build package on Push
on:
push:
branches:
- '**'
tags-ignore:
- 'docker_img-v*'
jobs:
Prepare:
name: 'Prepare'
uses: Ultimaker/embedded-workflows/.github/workflows/prepare_env.yml@main
secrets: inherit
Shellcheck:
name: 'Test'
needs: Prepare
uses: Ultimaker/embedded-workflows/.github/workflows/shellcheck.yml@main
secrets: inherit
Build:
name: 'Build'
needs: Prepare
uses: Ultimaker/embedded-workflows/.github/workflows/build.yml@main
with:
RELEASE_VERSION: ${{ needs.Prepare.outputs.RELEASE_VERSION }}
secrets: inherit
Release_Package:
name: 'Release'
needs: [Prepare, Shellcheck, Build]
if: ${{ (success() && needs.Prepare.outputs.RELEASE_REPO != 'none') ||
(failure() && needs.Build.result == 'success' && needs.Prepare.outputs.RELEASE_REPO == 'packages-dev') }}
uses: Ultimaker/embedded-workflows/.github/workflows/release_pkg.yml@main
with:
RELEASE_REPO: ${{ needs.Prepare.outputs.RELEASE_REPO }}
secrets: inherit