-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (34 loc) · 1.26 KB
/
develop.yml
File metadata and controls
44 lines (34 loc) · 1.26 KB
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
39
40
41
42
43
44
name: 'Development'
concurrency:
group: 'develop-${{ github.repository_owner }}-${{ github.event.repository.name }}'
cancel-in-progress: true # Allow only one concurrent workflow
on:
push:
branches: [develop]
paths:
- 'docker/**'
- 'backend/**'
- '!backend/docs/**'
- '!backend/locust/**'
- '!backend/scripts/**'
- '!backend/.exclude'
- '!backend/.gitignore'
- '!backend/pyproject.toml'
- '!backend/requirements-*.txt'
pull_request:
branches: [staging]
types: [closed]
jobs:
# Build and upload artifacts
build:
name: 'Build and Upload Artifacts'
secrets: inherit
if: ${{ (github.event_name == 'push') || ((github.event_name == 'pull_request') && (github.event.pull_request.head.ref == 'develop') && github.event.pull_request.merged) }}
uses: ./.github/workflows/builder.yml
with:
branch-name: 'develop'
branch-ref: 'refs/heads/develop'
update-major-version: false
update-minor-version: ${{ (github.event_name == 'pull_request') && (github.event.pull_request.head.ref == 'develop') && github.event.pull_request.merged }} # The current version was promoted to release candidate (staging)
update-patch-version: false
pre-release-type: 'alpha'