Skip to content

Commit 6789f65

Browse files
committed
add cache, fixed compress path
1 parent 58a1006 commit 6789f65

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,20 +60,25 @@ jobs:
6060

6161
- name: 📦 Install Hatch
6262
uses: pypa/hatch@install
63+
64+
- name: 📥 Cache Build
65+
uses: actions/cache@v4
66+
with:
67+
path: build
68+
key: build-${{ runner.os }}
6369

6470
- name: 🔨 Build Executable
6571
run: hatch run exe
6672

6773
- name: 🤐 Zip Build Folder
68-
# FIXME: Need correct CLI with correct folder name.
69-
run: Compress-Archive -Path dist/ephys-link-${{ github.ref_name }} -Destination dist/ephys-link-${{ github.ref_name }}.zip
74+
run: Compress-Archive -Path dist/EphysLink-${{ github.ref_name }} -DestinationPath dist/EphysLink-${{ github.ref_name }}.zip
7075

7176
- name: 📦 Make Release
7277
uses: ncipollo/release-action@v1
7378
with:
7479
tag: ${{ github.ref_name }}
7580
# FIXME: Use correct name.
76-
artifacts: "dist/ephys-link-${{ github.ref_name }}.zip,dist/ephys-link-${{ github.ref_name }}.exe"
81+
artifacts: "dist/EphysLink-${{ github.ref_name }}.zip,dist/EphysLink-${{ github.ref_name }}.exe"
7782
artifactErrorsFailBuild: true
7883
generateReleaseNotes: true
7984
prerelease: ${{ contains(github.ref_name, "a") || contains(github.ref_name, "b") || contains(github.ref_name, "c") || contains(github.ref_name, "d") }}

0 commit comments

Comments
 (0)