From b431f89175693069e795a585ffd0470426259e77 Mon Sep 17 00:00:00 2001 From: Hudson Xing Date: Mon, 28 Jul 2025 10:19:45 -0700 Subject: [PATCH 1/4] feat: add build and release workflow to main --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 322016a7c..7d669832d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,7 +1,7 @@ # Workflow name name: Release -# This workflow is triggered manually from the GitHub Actions tab test. +# This workflow is triggered manually from the GitHub Actions tab. on: workflow_dispatch: inputs: From dd6e1efe1409fda4c614524472f036dfaa58a253 Mon Sep 17 00:00:00 2001 From: Hudson Xing Date: Mon, 28 Jul 2025 13:54:04 -0700 Subject: [PATCH 2/4] feat: add build and release workflow to main --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7d669832d..32a47dbd6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -84,7 +84,7 @@ jobs: uses: softprops/action-gh-release@v2 with: # The name of the release, e.g., "Release v1.8.0". - name: Release ${{ github.event.inputs.version }} + name: CodeEditor ${{ github.event.inputs.version }} # The Git tag to create, e.g., "v1.8.0". tag_name: ${{ github.event.inputs.version }} # Path to the file(s) to upload as release assets. From 3f35c82882a219143f24584e3b48554b6607c028 Mon Sep 17 00:00:00 2001 From: Hudson Xing <77495133+harvenstar@users.noreply.github.com> Date: Tue, 29 Jul 2025 15:03:49 -0700 Subject: [PATCH 3/4] Update build.yml Signed-off-by: Hudson Xing <77495133+harvenstar@users.noreply.github.com> --- .github/workflows/build.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 644d7712c..52e22a927 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -94,27 +94,27 @@ jobs: - name: Find build output id: find_output run: | - BUILD_PATH=$(find . -name "vscode-reh-web-linux-x64" -type d | head -n 1) + BUILD_PATH=$(find . -name "sagemaker-code-editor" -type d | head -n 1) if [ -z "$BUILD_PATH" ]; then - echo "::error::Build output directory 'vscode-reh-web-linux-x64' not found!" + echo "::error::Build output directory 'sagemaker-code-editor' not found!" exit 1 fi echo "Build output found at: $BUILD_PATH" echo "build_path=$BUILD_PATH" >> $GITHUB_OUTPUT - + # Step 8: Create a compressed tarball of the build output. - name: Create tarball archive run: | - TARBALL="vscode-reh-web-linux-x64-${{ env.VERSION }}.tar.gz" + TARBALL="sagemaker-code-editor-${{ env.VERSION }}.tar.gz" BUILD_DIR_PATH="${{ steps.find_output.outputs.build_path }}" PARENT_DIR=$(dirname "$BUILD_DIR_PATH") BUILD_DIR_NAME=$(basename "$BUILD_DIR_PATH") echo "Creating '$TARBALL' from '$BUILD_DIR_NAME' in '$PARENT_DIR'" tar czf $TARBALL -C "$PARENT_DIR" "$BUILD_DIR_NAME" - + # Step 9: Upload the tarball as a build artifact. - name: Upload build artifact uses: actions/upload-artifact@v4 with: name: npm-package - path: vscode-reh-web-linux-x64-${{ env.VERSION }}.tar.gz \ No newline at end of file + path: sagemaker-code-editor-${{ env.VERSION }}.tar.gz From a617d2035580e525a5c98cf51a96e73692fe6eaf Mon Sep 17 00:00:00 2001 From: Hudson Xing <77495133+harvenstar@users.noreply.github.com> Date: Tue, 29 Jul 2025 15:50:06 -0700 Subject: [PATCH 4/4] Update build.yml Signed-off-by: Hudson Xing <77495133+harvenstar@users.noreply.github.com> --- .github/workflows/build.yml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 52e22a927..8bcb260a7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -90,29 +90,39 @@ jobs: # Run the gulp build task using npx npx gulp vscode-reh-web-${ARCH_ALIAS}-min - # Step 7: Find the exact path of the build output directory. + # Step 7: Find the exact path of the original build output directory. - name: Find build output id: find_output run: | - BUILD_PATH=$(find . -name "sagemaker-code-editor" -type d | head -n 1) + BUILD_PATH=$(find . -name "vscode-reh-web-linux-x64" -type d | head -n 1) if [ -z "$BUILD_PATH" ]; then - echo "::error::Build output directory 'sagemaker-code-editor' not found!" + echo "::error::Build output directory 'vscode-reh-web-linux-x64' not found!" exit 1 fi echo "Build output found at: $BUILD_PATH" echo "build_path=$BUILD_PATH" >> $GITHUB_OUTPUT - # Step 8: Create a compressed tarball of the build output. + # Step 8: Rename the build output directory to sagemaker-code-editor + - name: Rename build output directory + id: rename_output + run: | + ORIG_PATH="${{ steps.find_output.outputs.build_path }}" + PARENT_DIR=$(dirname "$ORIG_PATH") + mv "$ORIG_PATH" "$PARENT_DIR/sagemaker-code-editor" + echo "Renamed build output directory to: $PARENT_DIR/sagemaker-code-editor" + echo "build_path=$PARENT_DIR/sagemaker-code-editor" >> $GITHUB_OUTPUT + + # Step 9: Create a compressed tarball of the renamed build output. - name: Create tarball archive run: | TARBALL="sagemaker-code-editor-${{ env.VERSION }}.tar.gz" - BUILD_DIR_PATH="${{ steps.find_output.outputs.build_path }}" + BUILD_DIR_PATH="${{ steps.rename_output.outputs.build_path }}" PARENT_DIR=$(dirname "$BUILD_DIR_PATH") BUILD_DIR_NAME=$(basename "$BUILD_DIR_PATH") echo "Creating '$TARBALL' from '$BUILD_DIR_NAME' in '$PARENT_DIR'" tar czf $TARBALL -C "$PARENT_DIR" "$BUILD_DIR_NAME" - # Step 9: Upload the tarball as a build artifact. + # Step 10: Upload the tarball as a build artifact. - name: Upload build artifact uses: actions/upload-artifact@v4 with: