From bea3a2f1e523b19e2d63b99c3e1fe86a1bbd228f Mon Sep 17 00:00:00 2001 From: m1337v Date: Thu, 29 Aug 2024 21:59:22 +0700 Subject: [PATCH] Update ci.yaml --- .github/workflows/ci.yaml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f6073b0..66cf2f5 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -30,28 +30,29 @@ jobs: uses: NyaMisty/theos-action@master - name: Get tag - if: ${{ startsWith(github.ref, 'refs/tags/') }} + if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }} id: tag uses: dawidd6/action-get-tag@v1 - name: Build Release package - Rootful - if: ${{ startsWith(github.ref, 'refs/tags/') }} + if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }} run: | cd screendumpLowFrame make clean - TAGNAME=${{ steps.tag.outputs.tag }} + TAGNAME=${{ steps.tag.outputs.tag || '0.0.5' }} # Default value for manual run make package FINALPACKAGE=1 PACKAGE_VERSION=${TAGNAME#v}-rootful + - name: Build Release package - Rootless - if: ${{ startsWith(github.ref, 'refs/tags/') }} + if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }} run: | cd screendumpLowFrame make clean - TAGNAME=${{ steps.tag.outputs.tag }} + TAGNAME=${{ steps.tag.outputs.tag || '0.0.5' }} # Default value for manual run make package THEOS_PACKAGE_SCHEME=rootless FINALPACKAGE=1 PACKAGE_VERSION=${TAGNAME#v}-rootless - name: Release uses: softprops/action-gh-release@v1 - if: ${{ startsWith(github.ref, 'refs/tags/') }} + if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }} with: files: | ${{ github.workspace }}/screendumpLowFrame/packages/*.deb