Skip to content

Commit

Permalink
Fixed build paths (#427)
Browse files Browse the repository at this point in the history
* Fixed icon path

* add cache, fixed compress path
  • Loading branch information
kjy5 authored Jan 11, 2025
1 parent 4631d27 commit b0d4539
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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") }}
2 changes: 1 addition & 1 deletion ephys_link.spec
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,5 @@ else:
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon='assets\\icon.ico',
icon='docs\\assets\\favicon.ico',
)

0 comments on commit b0d4539

Please sign in to comment.