File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -164,17 +164,25 @@ jobs:
164164 - name : Append tag to artifacts
165165 run : |
166166 TAG_NAME=${GITHUB_REF#refs/tags/}
167+ REPO_NAME="${{ github.event.repository.name }}"
167168
168169 MAC_RELEASE_DIR=$(find $GITHUB_WORKSPACE/artifacts/plugin-macos -type d -name "Release" | head -n 1)
169170 WIN_RELEASE_DIR=$(find $GITHUB_WORKSPACE/artifacts/plugin-win -type d -name "Release" | head -n 1)
170171 LINUX_RELEASE_DIR=$(find $GITHUB_WORKSPACE/artifacts/plugin-linux -type d -name "Release" | head -n 1)
171172
172173 DEST_DIR="$GITHUB_WORKSPACE/artifacts"
173174
174- cd artifacts
175- zip -r plugin-win-${TAG_NAME}.zip "$WIN_RELEASE_DIR"
176- zip -r plugin-macos-${TAG_NAME}.zip "$MAC_RELEASE_DIR"
177- zip -r plugin-linux-${TAG_NAME}.zip "$LINUX_RELEASE_DIR"
175+ cd "$WIN_DIR"
176+ zip -r "${REPO_NAME}-win-${TAG_NAME}.zip" .
177+ cp "${REPO_NAME}-win-${TAG_NAME}.zip" "$DEST_DIR/"
178+
179+ cd "$MAC_DIR"
180+ zip -r "${REPO_NAME}-macos-${TAG_NAME}.zip" .
181+ cp "${REPO_NAME}-macos-${TAG_NAME}.zip" "$DEST_DIR/"
182+
183+ cd "$LINUX_DIR"
184+ zip -r "${REPO_NAME}-linux-${TAG_NAME}.zip" .
185+ cp "${REPO_NAME}-linux-${TAG_NAME}.zip" "$DEST_DIR/"
178186
179187 - name : Create GitHub Release
180188 uses : softprops/action-gh-release@v2
You can’t perform that action at this time.
0 commit comments