Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 18 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
path: sagemaker-code-editor-${{ env.VERSION }}.tar.gz
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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.
Expand Down