From da9bd12ed4d6f49349fa7dc03153052802ba6a78 Mon Sep 17 00:00:00 2001 From: Foxster Date: Sun, 21 Jul 2024 20:13:43 -0700 Subject: [PATCH] Update build-and-release.yml --- .github/workflows/build-and-release.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index 54b0332..3732f9e 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -35,22 +35,18 @@ jobs: make package FINALPACKAGE=1 make package FINALPACKAGE=1 THEOS_PACKAGE_SCHEME=rootless # make package FINALPACKAGE=1 THEOS_PACKAGE_SCHEME=roothide - PACKAGE=$(ls packages/ | grep .deb) - if [ -z "$PACKAGE" ]; then + PACKAGES=$(ls packages/ | grep .deb) + if [ -z "$PACKAGES" ]; then echo "No packages found." exit 1 fi - for PACKAGE in $PACKAGES; do - mv "packages/$PACKAGE" "packages/${PACKAGE%.deb}-${{ github.sha }}.deb" - echo "Renamed $PACKAGE to ${PACKAGE%.deb}-${{ github.sha }}.deb" - done env: THEOS: ${{ github.workspace }}/theos - name: Upload artifact uses: actions/upload-artifact@v4 with: - name: packages + name: Packages path: packages/ - name: Set release details