-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1.17 KB
/
build-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
33
34
35
36
37
38
39
40
41
42
name: build-release
on:
push:
tags:
- '*.*.*'
jobs:
build-release:
name: Build Release Package
runs-on: ubuntu-latest
container:
image: checkmk/check-mk-raw:2.1.0-latest
env:
OMD_ROOT: /omd/sites/cmk
OMD_SITE: cmk
CMK_SITE_ID: cmk
WORKSPACE: ${{ github.workspace }}
steps:
- name: Initialize Checkmk Site
run: /docker-entrypoint.sh /bin/true
- uses: actions/checkout@v2
- name: Set version env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Set current release version
run: sed -i 's#0.0.0#${{ env.RELEASE_VERSION }}#' src/package
- name: Setup links
run: chmod +x .devcontainer/symlink.sh && .devcontainer/symlink.sh
- name: Update GITHUB_PATH
run: echo "/omd/sites/cmk/bin" >> $GITHUB_PATH
- name: Build Extension
run: chmod +x .devcontainer/build.sh && .devcontainer/build.sh
- name: Release files
uses: softprops/action-gh-release@v1
with:
generate_release_notes: false
fail_on_unmatched_files: true
files: |
mirth-${{ env.RELEASE_VERSION }}.mkp