This repository has been archived by the owner on Jun 16, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 94
69 lines (61 loc) · 1.94 KB
/
release-please.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# SPDX-FileCopyrightText: 2021 Mikhail Zolotukhin <[email protected]>
#
# SPDX-License-Identifier: MIT
---
name: release-please
on:
push:
branches:
- master
jobs:
release-please:
name: Release Please
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
steps:
- name: Release Please 🔖
uses: GoogleCloudPlatform/release-please-action@v2
id: release
with:
release-type: node
package-name: release-please-action
publish-artifacts:
name: Publish Artifacts
runs-on: ubuntu-latest
container: ubuntu:22.04
env:
DEBIAN_FRONTEND: noninteractive
needs: release-please
if: ${{ needs.release-please.outputs.release_created }}
steps:
- name: Checkout Code 🛎️
uses: actions/checkout@v2
- name: Setup CI Utils ⚙️
run: .github/scripts/utils-install.sh
- name: Build 🔧
run: |
npm install
.github/scripts/sysdep-install.sh
cmake -S "." -B "build-debug" -G Ninja \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX="$PWD/binary-debug"
cmake --build "build-debug"
cmake --install "build-debug"
cmake -S "." -B "build-release" -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="$PWD/binary-release"
cmake --build "build-release"
cmake --install "build-release"
- name: Package 📦
run: |
tar czf binary-debug.tar.gz --directory=binary-debug .
tar czf binary-release.tar.gz --directory=binary-release .
- name: Publish 🎉
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ needs.release-please.outputs.tag_name }}
files: |
binary-debug.tar.gz
binary-release.tar.gz