-
Notifications
You must be signed in to change notification settings - Fork 4
36 lines (30 loc) · 875 Bytes
/
release.yml
File metadata and controls
36 lines (30 loc) · 875 Bytes
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
name: Release
on: [workflow_dispatch]
jobs:
approve-publish:
name: Approve publish
runs-on: ubuntu-latest
environment: sdk-publish-approval
steps:
- run: echo "Publish approved"
build:
needs: approve-publish
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Dev environment
run: |
sudo ${{github.workspace}}/tools/install-ubuntu-devtools.sh
sudo ${{github.workspace}}/tools/install-ubuntu-deps.sh
- name: Run cmake
run: |
mkdir build
cd build
cmake ..
- name: Create and push tag
run: |
TAG_NAME=v$(cat build/VERSION)
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git tag -a "${TAG_NAME}" -m "Release ${TAG_NAME}"
git push origin "${TAG_NAME}"