-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (48 loc) · 1.44 KB
/
master.yml
File metadata and controls
63 lines (48 loc) · 1.44 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: 'Release'
concurrency:
group: 'master-${{ github.repository_owner }}-${{ github.event.repository.name }}'
cancel-in-progress: true # Allow only one concurrent workflow
on:
push:
branches: [master]
paths:
- 'docker/**'
- 'backend/**'
- '!backend/docs/**'
- '!backend/locust/**'
- '!backend/scripts/**'
- '!backend/.exclude'
- '!backend/.gitignore'
- '!backend/pyproject.toml'
- '!backend/requirements-*.txt'
jobs:
# Build and upload artifacts
build:
name: 'Build and Upload Artifacts'
secrets: inherit
uses: ./.github/workflows/builder.yml
with:
branch-name: '${{ github.ref_name }}'
branch-ref: '${{ github.ref }}'
update-major-version: false
update-minor-version: false
update-patch-version: ${{ contains(github.event.head_commit.message, 'HOTFIX') }}
pre-release-type: '' # clear pre-release metadata (final release)
# Tag and release artifacts
release:
name: 'Tag and Release Artifacts'
runs-on: ubuntu-latest
needs: [build]
if: ${{ success() }}
# Set GITHUB_TOKEN required permissions
permissions:
contents: write
actions: read
steps:
- name: 'Create new release in GitHub'
id: release
uses: ncipollo/release-action@v1
with:
generateReleaseNotes: true
commit: '${{ github.ref }}'
tag: '${{ needs.build.outputs.version }}'