-
Notifications
You must be signed in to change notification settings - Fork 56
37 lines (34 loc) · 1.15 KB
/
release.yaml
File metadata and controls
37 lines (34 loc) · 1.15 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
name: release jobs
on:
push:
tags:
- '*'
permissions:
contents: write
jobs:
release:
strategy:
matrix:
options:
- make_command: all test install ARGS=-V
cmake_extra_vars: -DBOOST_STATIC=ON
- make_command: all test install ARGS=-V
leatherman_pkg_suffix: "-dynamic"
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: docker_pull_and_make
uses: ./.github/actions/docker_pull_and_make
with:
cmake_extra_vars: ${{ matrix.options.cmake_extra_vars }}
make_command: ${{ matrix.options.make_command }}
leatherman_pkg_suffix: ${{ matrix.options.leatherman_pkg_suffix }}
- name: build_release_artifact_for_tags
if: startsWith(github.ref, 'refs/tags/')
run: tar czvf cpp-hocon${{ matrix.options.leatherman_pkg_suffix }}.tar.gz `find dest -type f -print`
- name: upload_release_artifacts_for_tag
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: cpp-hocon${{ matrix.options.leatherman_pkg_suffix }}.tar.gz