From b0d4539a7a5ae6c5d7fa76669a8324a45ccebf31 Mon Sep 17 00:00:00 2001 From: Kenneth Yang <82800265+kjy5@users.noreply.github.com> Date: Sat, 11 Jan 2025 15:02:21 -0800 Subject: [PATCH] Fixed build paths (#427) * Fixed icon path * add cache, fixed compress path --- .github/workflows/release.yml | 11 ++++++++--- ephys_link.spec | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index eedebd5..d22f839 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -60,20 +60,25 @@ jobs: - name: 📦 Install Hatch uses: pypa/hatch@install + + - name: 📥 Cache Build + uses: actions/cache@v4 + with: + path: build + key: build-${{ runner.os }} - name: 🔨 Build Executable run: hatch run exe - name: 🤐 Zip Build Folder - # FIXME: Need correct CLI with correct folder name. - run: Compress-Archive -Path dist/ephys-link-${{ github.ref_name }} -Destination dist/ephys-link-${{ github.ref_name }}.zip + run: Compress-Archive -Path dist/EphysLink-${{ github.ref_name }} -DestinationPath dist/EphysLink-${{ github.ref_name }}.zip - name: 📦 Make Release uses: ncipollo/release-action@v1 with: tag: ${{ github.ref_name }} # FIXME: Use correct name. - artifacts: "dist/ephys-link-${{ github.ref_name }}.zip,dist/ephys-link-${{ github.ref_name }}.exe" + artifacts: "dist/EphysLink-${{ github.ref_name }}.zip,dist/EphysLink-${{ github.ref_name }}.exe" artifactErrorsFailBuild: true generateReleaseNotes: true prerelease: ${{ contains(github.ref_name, "a") || contains(github.ref_name, "b") || contains(github.ref_name, "c") || contains(github.ref_name, "d") }} diff --git a/ephys_link.spec b/ephys_link.spec index 0378503..dfd66f5 100644 --- a/ephys_link.spec +++ b/ephys_link.spec @@ -71,5 +71,5 @@ else: target_arch=None, codesign_identity=None, entitlements_file=None, - icon='assets\\icon.ico', + icon='docs\\assets\\favicon.ico', )