diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 644d7712c..8bcb260a7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -90,7 +90,7 @@ 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: | @@ -101,20 +101,30 @@ jobs: 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="vscode-reh-web-linux-x64-${{ env.VERSION }}.tar.gz" - BUILD_DIR_PATH="${{ steps.find_output.outputs.build_path }}" + TARBALL="sagemaker-code-editor-${{ env.VERSION }}.tar.gz" + 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: 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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 322016a7c..32a47dbd6 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: @@ -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.