aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/CI.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/CI.yml')
-rw-r--r--.github/workflows/CI.yml10
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: