diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build-bot.yml similarity index 91% rename from .github/workflows/ci-build.yml rename to .github/workflows/ci-build-bot.yml index 18a7f4427..3f4b5759b 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build-bot.yml @@ -34,10 +34,10 @@ jobs: run: yarn - name: Build - run: yarn build + run: yarn build:bot - name: Archive build uses: actions/upload-artifact@v3 with: - name: dist - path: dist + name: bot + path: dist/bot diff --git a/.github/workflows/ci-build-docs.yml b/.github/workflows/ci-build-docs.yml new file mode 100644 index 000000000..ef06453f5 --- /dev/null +++ b/.github/workflows/ci-build-docs.yml @@ -0,0 +1,43 @@ +name: CI Build + +on: [push, pull_request] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + name: Build + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Use node + uses: actions/setup-node@v3 + with: + node-version: 18 + cache: 'npm' + + - name: Install Yarn + run: npm install --location=global yarn + + - name: Use node_modules cache + uses: actions/cache@v3 + with: + path: '**/node_modules' + key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} + + - name: Install dependencies + run: yarn + + - name: Build + run: yarn build:docs + + - name: Archive build + uses: actions/upload-artifact@v3 + with: + name: bot + path: dist/bot diff --git a/.github/workflows/ci-build-server.yml b/.github/workflows/ci-build-server.yml new file mode 100644 index 000000000..ac28ecb1e --- /dev/null +++ b/.github/workflows/ci-build-server.yml @@ -0,0 +1,43 @@ +name: CI Build + +on: [push, pull_request] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + name: Build + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Use node + uses: actions/setup-node@v3 + with: + node-version: 18 + cache: 'npm' + + - name: Install Yarn + run: npm install --location=global yarn + + - name: Use node_modules cache + uses: actions/cache@v3 + with: + path: '**/node_modules' + key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} + + - name: Install dependencies + run: yarn + + - name: Build + run: yarn build:server + + - name: Archive build + uses: actions/upload-artifact@v3 + with: + name: bot + path: dist/bot diff --git a/.github/workflows/ci-build-website.yml b/.github/workflows/ci-build-website.yml new file mode 100644 index 000000000..50e886daa --- /dev/null +++ b/.github/workflows/ci-build-website.yml @@ -0,0 +1,43 @@ +name: CI Build + +on: [push, pull_request] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + name: Build + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Use node + uses: actions/setup-node@v3 + with: + node-version: 18 + cache: 'npm' + + - name: Install Yarn + run: npm install --location=global yarn + + - name: Use node_modules cache + uses: actions/cache@v3 + with: + path: '**/node_modules' + key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} + + - name: Install dependencies + run: yarn + + - name: Build + run: yarn build:website + + - name: Archive build + uses: actions/upload-artifact@v3 + with: + name: bot + path: dist/bot