diff options
author | LKedward <laurence.kedward@bristol.ac.uk> | 2020-11-19 12:06:12 +0000 |
---|---|---|
committer | LKedward <laurence.kedward@bristol.ac.uk> | 2020-11-19 12:24:07 +0000 |
commit | bfe258e7c36c46dcc829aa5e30971b22e715943a (patch) | |
tree | a4f7183c25a9a1fa27429bc7628fd77927ff14ec /.github | |
parent | e4c0b1219668afe31298b8ae639830feac6e3c91 (diff) | |
download | fpm-bfe258e7c36c46dcc829aa5e30971b22e715943a.tar.gz fpm-bfe258e7c36c46dcc829aa5e30971b22e715943a.zip |
Restrict github actions release triggers
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/CI.yml | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index eb0e9db..a65bad2 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -1,6 +1,10 @@ name: CI -on: [push, pull_request, release] +on: + push: + pull_request: + release: + types: [published] env: CI: "ON" # We can detect this in the build system and other vendors implement it @@ -119,7 +123,7 @@ jobs: if: github.event_name == 'release' && contains(matrix.os, 'ubuntu') run: | cd fpm - fpm run -- "--version" | grep $(echo ${{ github.ref }} | cut -d/ -f3) + fpm run -- "--version" | grep $(echo ${{ github.ref }} | cut -dv -f2) - name: Stage release files for upload if: github.event_name == 'release' @@ -127,7 +131,7 @@ jobs: cd fpm ${{ matrix.RELEASE_CMD }} -- fpm-${{ matrix.os }}-x86_64 - - name: Upload debug binary + - name: Upload fpm binary if: github.event_name == 'release' uses: svenstaro/upload-release-action@v2 with: |