Skip to content

Commit

Permalink
Github actions - Only run deb packaging and auto release if on master…
Browse files Browse the repository at this point in the history
… or prod branch
  • Loading branch information
SneWs committed Jul 12, 2024
1 parent e557a93 commit 2ac67fc
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: CMake on Ubuntu

on:
push:
branches: [ "master", "develop" ]
branches: [ "master", "develop", "prod" ]
pull_request:
branches: [ "master" ]

Expand Down Expand Up @@ -67,6 +67,11 @@ jobs:
chmod +x ./build-deb.sh
./build-deb.sh ${{ steps.strings.outputs.build-output-dir }}
shell: bash
if:
contains('
refs/heads/master
refs/heads/prod
', github.ref)
- uses: "marvinpinto/action-automatic-releases@latest"
with:
Expand All @@ -76,4 +81,8 @@ jobs:
title: "Dev build debs"
files: |
${{ steps.strings.outputs.build-output-dir }}/*.deb
if:
contains('
refs/heads/master
refs/heads/prod
', github.ref)

0 comments on commit 2ac67fc

Please sign in to comment.