-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.17 KB
/
master-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
43
name: Master Release
# trunk-ignore(checkov/CKV2_GHA_1)
permissions: write-all
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Increment Version
id: tag_version
uses: mathieudutour/github-tag-action@v6.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
release_branches: master
custom_release_rules: release:major
- name: Install Dependencies
run: sudo apt update && sudo apt install -y gcc-12 g++-12 build-essential ragel lemon cmake
- name: Checkout Repository
uses: actions/checkout@v3
- run: git fetch --tags
- name: Configure CMake
run: CC=gcc-12 CXX=g++-12 cmake -DDISABLE_CLANG_TIDY=YES -B ${{github.workspace}}/build
- name: Build
run: cmake --build ${{github.workspace}}/build
- name: Create Release
uses: softprops/action-gh-release@v1
if: steps.tag_version.outputs.new_tag
with:
prerelease: true
generate_release_notes: true
files: |
${{github.workspace}}/build/gifscript
tag_name: ${{ steps.tag_version.outputs.new_tag }}