Skip to content

Commit

Permalink
Fix GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineGautier committed Sep 13, 2023
1 parent 29080f8 commit 5de72de
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: CMake

on: [push]
on:
pull_request:
branches:
- 'master'
push:
branches:
- 'master'

env:
BUILD_TYPE: Release
Expand Down Expand Up @@ -66,7 +72,11 @@ jobs:
run: ctest -C $BUILD_TYPE --verbose

- name: Push binaries
if: contains(matrix.os, 'latest') && contains(matrix.python-version, '3.9') && github.event.pull_request.merged == true
if: |
contains(matrix.os, 'latest') &&
contains(matrix.python-version, '3.9') &&
${{ github.event.name == 'push' }} &&
${{ github.ref == 'refs/heads/master' }}
run: |
git config --global user.name $GH_USERNAME
git config --global user.email [email protected]
Expand Down

0 comments on commit 5de72de

Please sign in to comment.