diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ff92bc2..ce81648 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,19 +26,29 @@ jobs: build: name: Build runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [14.x] + outputs: version: ${{ steps.properties.outputs.version }} changelog: ${{ steps.properties.outputs.changelog }} pluginVerifierHomeDir: ${{ steps.properties.outputs.pluginVerifierHomeDir }} - steps: + steps: # Check out current repository - name: Fetch Sources uses: actions/checkout@v4 - - name: Get latest version of main.html and main.js - run: | - wget $(curl -s https://api.github.com/repositories/709076669/releases/latest | grep -oP '"browser_download_url": "\K(.*)(?=")' | grep main.html) -O src/main/resources/static/main.html - wget $(curl -s https://api.github.com/repositories/709076669/releases/latest | grep -oP '"browser_download_url": "\K(.*)(?=")' | grep main.js) -O src/main/resources/static/main.js + run: git submodule update --init --recursive + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + + - name: Build GUI + run: cd gui && yarn && yarn idea # Validate wrapper - name: Gradle Wrapper Validation diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..b93b3f1 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "gui"] + path = gui + url = https://github.com/devchat-ai/devchat-gui.git diff --git a/gui b/gui new file mode 160000 index 0000000..a39ec87 --- /dev/null +++ b/gui @@ -0,0 +1 @@ +Subproject commit a39ec87f9aa38560c538e69ffdb0290baa720a13 diff --git a/package.json b/package.json new file mode 100644 index 0000000..754e2d1 --- /dev/null +++ b/package.json @@ -0,0 +1,6 @@ +{ + "name": "devchat-intellij", + "scripts": { + "build": "cd ./gui && yarn && yarn idea" + } +}