-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (26 loc) · 764 Bytes
/
main.yml
File metadata and controls
30 lines (26 loc) · 764 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
#* Thanks to https://www.foonathan.net/2022/06/cmake-fetchcontent/
name: Release
permissions:
contents: write
on:
release:
types: [published]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Create build environment
run: cmake -E make_directory build
- name: Configure
working-directory: build/
run: cmake $GITHUB_WORKSPACE
- name: Package source code
working-directory: build/
run: cmake --build . --target src_package
- name: Add packaged source code to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/src.zip
tag: ${{ github.ref }}