Skip to content

Commit

Permalink
ci: Implement linux release ci
Browse files Browse the repository at this point in the history
  • Loading branch information
F0bes committed Mar 19, 2024
1 parent 8c397d3 commit e8a88c8
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/master-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Master Release

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: apt update && apt install -y build-essential ragel lemon cmake

- name: Checkout Repository
uses: actions/checkout@v3
- run: git fetch --tags

- name: Configure CMake
run: cmake -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 }}

0 comments on commit e8a88c8

Please sign in to comment.