summaryrefslogtreecommitdiff
path: root/.github/workflows/main.yaml
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-08-01 16:29:10 -0700
committerNate Sesti <sestinj@gmail.com>2023-08-01 16:29:10 -0700
commit2a9d057c5b173c01977e3ae5299f685b474b1eab (patch)
tree68e1ffadbfc32f3f812363e91095e2a1d53e403f /.github/workflows/main.yaml
parentf9148fd279e8af0a145308c96c4f5b5536b1e4e8 (diff)
downloadsncontinue-2a9d057c5b173c01977e3ae5299f685b474b1eab.tar.gz
sncontinue-2a9d057c5b173c01977e3ae5299f685b474b1eab.tar.bz2
sncontinue-2a9d057c5b173c01977e3ae5299f685b474b1eab.zip
fixes to main.yaml, build nodejs
Diffstat (limited to '.github/workflows/main.yaml')
-rw-r--r--.github/workflows/main.yaml162
1 files changed, 91 insertions, 71 deletions
diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
index 24835d78..f866bf78 100644
--- a/.github/workflows/main.yaml
+++ b/.github/workflows/main.yaml
@@ -41,74 +41,94 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: ${{ runner.os }} Build
- path: dist/run
-
- # publish:
- # runs-on: ubuntu-latest
-
- # steps:
- # - name: Checkout
- # uses: actions/checkout@v2
-
- # - name: Set up Python
- # uses: actions/setup-python@v2
- # with:
- # python-version: "3.8"
-
- # - name: Install Poetry
- # run: |
- # curl -sSL https://install.python-poetry.org | python3 -
-
- # - name: Install Python dependencies
- # run: |
- # cd continuedev
- # poetry install
-
- # - name: Cache extension node_modules
- # uses: actions/cache@v2
- # with:
- # path: extension/node_modules
- # key: ${{ runner.os }}-node-${{ hashFiles('extension/package-lock.json') }}
-
- # - name: Cache react-app node_modules
- # uses: actions/cache@v2
- # with:
- # path: extension/react-app/node_modules
- # key: ${{ runner.os }}-node-${{ hashFiles('extension/react-app/package-lock.json') }}
-
- # - name: Set up Node.js
- # uses: actions/setup-node@v2
- # with:
- # node-version: "14"
-
- # - name: Install extension Dependencies
- # run: |
- # cd extension
- # npm ci --legacy-peer-deps
-
- # - name: Install react-app Dependencies
- # run: |
- # cd extension/react-app
- # npm ci --legacy-peer-deps
-
- # - name: Build and Publish
- # run: |
- # cd extension
- # npm run full-package
-
- # - name: Commit changes
- # run: |
- # git config --local user.email "action@github.com"
- # git config --local user.name "GitHub Action"
- # git commit -am "Update package.json version [skip ci]"
-
- # - name: Push changes
- # uses: ad-m/github-push-action@master
- # with:
- # github_token: ${{ secrets.GITHUB_TOKEN }}
-
- # - name: Upload .vsix artifact
- # uses: actions/upload-artifact@v2
- # with:
- # name: vsix-artifact
- # path: extension/build/*
+ path: dist/*
+
+ publish:
+ needs: pyinstaller
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+
+ - name: Download Linux build
+ uses: actions/download-artifact@v2
+ with:
+ name: Linux Build
+ path: extension/server/exe/run-linux
+
+ - name: Download macOS build
+ uses: actions/download-artifact@v2
+ with:
+ name: macOS Build
+ path: extension/server/exe/run-darwin
+
+ - name: Download Windows build
+ uses: actions/download-artifact@v2
+ with:
+ name: Windows Build
+ path: extension/server/exe/run-windows.exe
+
+ - name: Set up Python
+ uses: actions/setup-python@v2
+ with:
+ python-version: "3.8"
+
+ - name: Install Poetry
+ run: |
+ curl -sSL https://install.python-poetry.org | python3 -
+
+ - name: Install Python dependencies
+ run: |
+ cd continuedev
+ poetry install
+
+ - name: Cache extension node_modules
+ uses: actions/cache@v2
+ with:
+ path: extension/node_modules
+ key: ${{ runner.os }}-node-${{ hashFiles('extension/package-lock.json') }}
+
+ - name: Cache react-app node_modules
+ uses: actions/cache@v2
+ with:
+ path: extension/react-app/node_modules
+ key: ${{ runner.os }}-node-${{ hashFiles('extension/react-app/package-lock.json') }}
+
+ - name: Set up Node.js
+ uses: actions/setup-node@v2
+ with:
+ node-version: "14"
+
+ - name: Install extension Dependencies
+ run: |
+ cd extension
+ npm ci --legacy-peer-deps
+
+ - name: Install react-app Dependencies
+ run: |
+ cd extension/react-app
+ npm ci --legacy-peer-deps
+
+ - name: Build and Publish
+ run: |
+ cd extension
+ npm run full-package
+
+ - name: Commit changes
+ run: |
+ git config --local user.email "action@github.com"
+ git config --local user.name "GitHub Action"
+ git commit -am "Update package.json version [skip ci]"
+
+ - name: Push changes
+ uses: ad-m/github-push-action@master
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ branch: ${{ github.ref }}
+
+ - name: Upload .vsix artifact
+ uses: actions/upload-artifact@v2
+ with:
+ name: vsix-artifact
+ path: extension/build/*