Skip to content

Commit 891a60b

Browse files
committed
ci: Implement linux release ci
1 parent 8c397d3 commit 891a60b

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/master-release.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Master Release
2+
permissions: write-all
3+
4+
on:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Increment Version
14+
id: tag_version
15+
uses: mathieudutour/github-tag-action@v6.2
16+
with:
17+
github_token: ${{ secrets.GITHUB_TOKEN }}
18+
release_branches: master
19+
custom_release_rules: "release:major"
20+
21+
- name: Install Dependencies
22+
run: sudo apt update && sudo apt install -y build-essential ragel lemon cmake
23+
24+
- name: Checkout Repository
25+
uses: actions/checkout@v3
26+
- run: git fetch --tags
27+
28+
- name: Configure CMake
29+
run: cmake -B ${{github.workspace}}/build
30+
31+
- name: Build
32+
run: cmake --build ${{github.workspace}}/build
33+
34+
- name: Create Release
35+
uses: softprops/action-gh-release@v1
36+
if: steps.tag_version.outputs.new_tag
37+
with:
38+
prerelease: true
39+
generate_release_notes: true
40+
files: |
41+
${{github.workspace}}/build/gifscript
42+
tag_name: ${{ steps.tag_version.outputs.new_tag }}

0 commit comments

Comments
 (0)