💚 log prepackaging error
This commit is contained in:
parent
a0e0803f10
commit
80a42c0822
3 changed files with 83 additions and 80 deletions
156
.github/workflows/preview.yaml
vendored
156
.github/workflows/preview.yaml
vendored
|
|
@ -6,47 +6,47 @@ on:
|
|||
- preview
|
||||
|
||||
jobs:
|
||||
pypi-deployment:
|
||||
runs-on: ubuntu-20.04
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v2
|
||||
# pypi-deployment:
|
||||
# runs-on: ubuntu-20.04
|
||||
# permissions:
|
||||
# contents: write
|
||||
# steps:
|
||||
# - name: Check out code
|
||||
# uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.10.8"
|
||||
# - name: Set up Python
|
||||
# uses: actions/setup-python@v4
|
||||
# with:
|
||||
# python-version: "3.10.8"
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install poetry
|
||||
# - name: Install dependencies
|
||||
# run: |
|
||||
# python -m pip install --upgrade pip
|
||||
# pip install poetry
|
||||
|
||||
- name: Install project dependencies
|
||||
run: cd server && poetry install
|
||||
# - name: Install project dependencies
|
||||
# run: cd server && poetry install
|
||||
|
||||
- name: Configure Poetry Token
|
||||
run: cd server && poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
|
||||
# - name: Configure Poetry Token
|
||||
# run: cd server && poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
|
||||
|
||||
- name: Bump the version
|
||||
run: cd server && poetry version patch
|
||||
# - name: Bump the version
|
||||
# run: cd server && poetry version patch
|
||||
|
||||
- name: Build and publish the package
|
||||
run: cd server && poetry publish --build
|
||||
# - name: Build and publish the package
|
||||
# run: cd server && poetry publish --build
|
||||
|
||||
- name: Commit changes
|
||||
run: |
|
||||
git config --local user.email "action@github.com"
|
||||
git config --local user.name "GitHub Action"
|
||||
git commit -am "ci: 🏷 Update PyPI version [skip ci]"
|
||||
# - name: Commit changes
|
||||
# run: |
|
||||
# git config --local user.email "action@github.com"
|
||||
# git config --local user.name "GitHub Action"
|
||||
# git commit -am "ci: 🏷 Update PyPI version [skip ci]"
|
||||
|
||||
- name: Push changes
|
||||
uses: ad-m/github-push-action@master
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
branch: ${{ github.ref }}
|
||||
# - name: Push changes
|
||||
# uses: ad-m/github-push-action@master
|
||||
# with:
|
||||
# github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
# branch: ${{ github.ref }}
|
||||
|
||||
build:
|
||||
strategy:
|
||||
|
|
@ -94,64 +94,64 @@ jobs:
|
|||
- name: Check-out repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.10.8"
|
||||
# - name: Set up Python
|
||||
# uses: actions/setup-python@v4
|
||||
# with:
|
||||
# python-version: "3.10.8"
|
||||
|
||||
- name: Install Pyinstaller
|
||||
run: |
|
||||
pip install pyinstaller
|
||||
# - name: Install Pyinstaller
|
||||
# run: |
|
||||
# pip install pyinstaller
|
||||
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
pip install -r server/requirements.txt
|
||||
# - name: Install Dependencies
|
||||
# run: |
|
||||
# pip install -r server/requirements.txt
|
||||
|
||||
- name: Install tiktoken vocab file
|
||||
run: |
|
||||
mkdir .tiktoken_cache
|
||||
curl -o .tiktoken_cache/9b5ad71b2ce5302211f9c61530b329a4922fc6a4 https://s3.us-west-1.amazonaws.com/s3.continue.dev/tiktoken/9b5ad71b2ce5302211f9c61530b329a4922fc6a4
|
||||
# - name: Install tiktoken vocab file
|
||||
# run: |
|
||||
# mkdir .tiktoken_cache
|
||||
# curl -o .tiktoken_cache/9b5ad71b2ce5302211f9c61530b329a4922fc6a4 https://s3.us-west-1.amazonaws.com/s3.continue.dev/tiktoken/9b5ad71b2ce5302211f9c61530b329a4922fc6a4
|
||||
|
||||
- name: Build PyInstaller Executable
|
||||
run: pyinstaller continue_server.spec
|
||||
# - name: Build PyInstaller Executable
|
||||
# run: pyinstaller continue_server.spec
|
||||
|
||||
# 1.5 Place the binary in extension/exe directory
|
||||
- name: Make sure extension/exe directory exists
|
||||
run: |
|
||||
mkdir -p extension/exe
|
||||
# - name: Make sure extension/exe directory exists
|
||||
# run: |
|
||||
# mkdir -p extension/exe
|
||||
|
||||
- name: Copy binary to extension (non-Windows)
|
||||
run: |
|
||||
cp dist/continue_server extension/exe/continue_server
|
||||
if: matrix.os != 'windows-latest'
|
||||
# - name: Copy binary to extension (non-Windows)
|
||||
# run: |
|
||||
# cp dist/continue_server extension/exe/continue_server
|
||||
# if: matrix.os != 'windows-latest'
|
||||
|
||||
- name: Copy binary to extension (Windows)
|
||||
run: |
|
||||
cp dist/continue_server.exe extension/exe/continue_server.exe
|
||||
if: matrix.os == 'windows-latest'
|
||||
# - name: Copy binary to extension (Windows)
|
||||
# run: |
|
||||
# cp dist/continue_server.exe extension/exe/continue_server.exe
|
||||
# if: matrix.os == 'windows-latest'
|
||||
|
||||
# 1.8 Set permissions and upload binary
|
||||
- name: Set permissions
|
||||
run: |
|
||||
chmod 777 extension/exe/continue_server
|
||||
# - name: Set permissions
|
||||
# run: |
|
||||
# chmod 777 extension/exe/continue_server
|
||||
|
||||
- uses: actions/upload-artifact@v2
|
||||
if: matrix.os == 'macos-latest' && matrix.arch == 'x64'
|
||||
with:
|
||||
name: macOSBinary
|
||||
path: extension/exe/continue_server
|
||||
# - uses: actions/upload-artifact@v2
|
||||
# if: matrix.os == 'macos-latest' && matrix.arch == 'x64'
|
||||
# with:
|
||||
# name: macOSBinary
|
||||
# path: extension/exe/continue_server
|
||||
|
||||
- uses: actions/upload-artifact@v2
|
||||
if: matrix.os == 'ubuntu-20.04' && matrix.arch == 'x64' && matrix.platform == 'linux'
|
||||
with:
|
||||
name: LinuxBinary
|
||||
path: extension/exe/continue_server
|
||||
# - uses: actions/upload-artifact@v2
|
||||
# if: matrix.os == 'ubuntu-20.04' && matrix.arch == 'x64' && matrix.platform == 'linux'
|
||||
# with:
|
||||
# name: LinuxBinary
|
||||
# path: extension/exe/continue_server
|
||||
|
||||
- uses: actions/upload-artifact@v2
|
||||
if: matrix.os == 'windows-latest' && matrix.arch == 'x64'
|
||||
with:
|
||||
name: WindowsBinary
|
||||
path: extension/exe/continue_server.exe
|
||||
# - uses: actions/upload-artifact@v2
|
||||
# if: matrix.os == 'windows-latest' && matrix.arch == 'x64'
|
||||
# with:
|
||||
# name: WindowsBinary
|
||||
# path: extension/exe/continue_server.exe
|
||||
|
||||
# 2. Install npm dependencies
|
||||
- name: Use Node.js 19.0.0
|
||||
|
|
|
|||
|
|
@ -17,7 +17,10 @@ exec("npm install", (error) => {
|
|||
console.log("npm install in react-app completed");
|
||||
|
||||
exec("npm run build", (error) => {
|
||||
if (error) throw error;
|
||||
if (error) {
|
||||
console.log("Error running npm run build in react-app: ", error);
|
||||
throw error;
|
||||
}
|
||||
if (!fs.existsSync(path.join("dist", "assets", "index.js"))) {
|
||||
throw new Error("react-app build did not produce index.js");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ pluginGroup = com.github.continuedev.continueintellijextension
|
|||
pluginName = continue-intellij-extension
|
||||
pluginRepositoryUrl = https://github.com/continuedev/continue
|
||||
# SemVer format -> https://semver.org
|
||||
pluginVersion = 0.0.11
|
||||
pluginVersion = 0.0.12
|
||||
|
||||
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
|
||||
pluginSinceBuild = 223
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue