Skip to content

Commit adc3aac

Browse files
committed
fix: preserve skills directory structure in release assets
1 parent e0843cf commit adc3aac

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/package-and-upload-assets.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- { os: "darwin", arch: "arm64", download_path_segment: "darwin/arm64", binary_suffix: "", archive_extension: "tar.gz", archive_command: 'tar -czvf "${ARCHIVE_NAME}" -C staging .' }
3737
- { os: "darwin", arch: "x64", download_path_segment: "darwin/amd64", binary_suffix: "", archive_extension: "tar.gz", archive_command: 'tar -czvf "${ARCHIVE_NAME}" -C staging .' }
3838
- { os: "win32", arch: "x64", download_path_segment: "windows/amd64", binary_suffix: ".exe", archive_extension: "zip", archive_command: '(cd staging && zip ../"${ARCHIVE_NAME}" *)' }
39-
39+
4040
steps:
4141
- name: Checkout code at the new tag
4242
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
@@ -63,11 +63,11 @@ jobs:
6363
SOURCE_BINARY: ${{ steps.vars.outputs.source_binary }}
6464
run: |
6565
DOWNLOAD_URL="${GCS_BUCKET_URL}/v${TOOLBOX_VERSION}/${DOWNLOAD_PATH_SEGMENT}/${SOURCE_BINARY}"
66-
66+
6767
echo "Downloading binary from: ${DOWNLOAD_URL}"
6868
curl -L --fail -o "${SOURCE_BINARY}" "${DOWNLOAD_URL}"
6969
chmod +x ${SOURCE_BINARY}
70-
70+
7171
echo "Binary downloaded and prepared."
7272
ls -l
7373
@@ -83,12 +83,13 @@ jobs:
8383
8484
echo "Packaging ${SOURCE_BINARY} into ${ARCHIVE_NAME}"
8585
86-
mkdir staging
86+
mkdir -p staging/skills
8787
cp "${SOURCE_BINARY}" "staging/${SOURCE_BINARY}"
88-
cp ${FILES_TO_PACKAGE} staging/
88+
cp -r ${FILES_TO_PACKAGE} staging/
89+
cp -r skills/* staging/skills/
8990
9091
echo "All assets staged."
91-
ls -l staging
92+
ls -R staging
9293
9394
# Create archive
9495
eval "${ARCHIVE_COMMAND}"
@@ -100,7 +101,7 @@ jobs:
100101
with:
101102
name: ${{ steps.vars.outputs.archive_name }}
102103
path: ${{ steps.create_archive.outputs.ARCHIVE_PATH }}
103-
104+
104105
# This job gathers all archives and uploads them to the GitHub Release.
105106
upload:
106107
name: Upload all assets to release

0 commit comments

Comments
 (0)