Skip to content

Commit a33599e

Browse files
authored
fix: add skills to release assets (#122)
1 parent e0843cf commit a33599e

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ 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-
4039
steps:
4140
- name: Checkout code at the new tag
4241
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
@@ -63,11 +62,9 @@ jobs:
6362
SOURCE_BINARY: ${{ steps.vars.outputs.source_binary }}
6463
run: |
6564
DOWNLOAD_URL="${GCS_BUCKET_URL}/v${TOOLBOX_VERSION}/${DOWNLOAD_PATH_SEGMENT}/${SOURCE_BINARY}"
66-
6765
echo "Downloading binary from: ${DOWNLOAD_URL}"
6866
curl -L --fail -o "${SOURCE_BINARY}" "${DOWNLOAD_URL}"
6967
chmod +x ${SOURCE_BINARY}
70-
7168
echo "Binary downloaded and prepared."
7269
ls -l
7370
@@ -83,12 +80,13 @@ jobs:
8380
8481
echo "Packaging ${SOURCE_BINARY} into ${ARCHIVE_NAME}"
8582
86-
mkdir staging
83+
mkdir -p staging/skills
8784
cp "${SOURCE_BINARY}" "staging/${SOURCE_BINARY}"
88-
cp ${FILES_TO_PACKAGE} staging/
85+
cp -r ${FILES_TO_PACKAGE} staging/
86+
cp -r skills/* staging/skills/
8987
9088
echo "All assets staged."
91-
ls -l staging
89+
ls -R staging
9290
9391
# Create archive
9492
eval "${ARCHIVE_COMMAND}"
@@ -100,7 +98,6 @@ jobs:
10098
with:
10199
name: ${{ steps.vars.outputs.archive_name }}
102100
path: ${{ steps.create_archive.outputs.ARCHIVE_PATH }}
103-
104101
# This job gathers all archives and uploads them to the GitHub Release.
105102
upload:
106103
name: Upload all assets to release

0 commit comments

Comments
 (0)