Skip to content

Commit

Permalink
Merge pull request #579 from kuzzleio/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
rolljee authored Oct 30, 2024
2 parents 513e019 + bfc7ac1 commit e935798
Show file tree
Hide file tree
Showing 116 changed files with 7,032 additions and 23,418 deletions.
19 changes: 0 additions & 19 deletions .babelrc

This file was deleted.

18 changes: 10 additions & 8 deletions .github/workflows/child_repo.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ on:
required: true

env:
NODE_VERSION: 16
NODE_VERSION: 20

jobs:
dead-links:
name: Check the dead-links on the repo
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Output event inputs for debug
run: echo "Repo ${{ github.event.inputs.repo_name }} triggered this workflow from branch ${{ github.event.inputs.branch }} v${{ github.event.inputs.version }}"
Expand All @@ -34,14 +34,15 @@ jobs:
name: id_rsa
known_hosts: unnecessary

- name: Setup Node JS
uses: actions/setup-node@v3
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'

# Dead links does not work because of private template
# From iot platform
# - name: Check dead links
# - name: Check dead links
# uses: ./.github/actions/dead-links
# with:
# repo_name: ${{ github.event.inputs.repo_name }}
Expand All @@ -54,12 +55,13 @@ jobs:
needs: [dead-links]
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node JS
uses: actions/setup-node@v3
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'

- name: Install SSH key
uses: shimataro/ssh-key-action@v2
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/dead_links.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ on:
required: true

env:
NODE_VERSION: 16
NODE_VERSION: 20

jobs:
dead-links:
name: Check the dead-links on the repo
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Output event inputs for debug
run: echo "Repo ${{ github.event.inputs.repo_name }} triggered this workflow from branch ${{ github.event.inputs.branch }} v${{ github.event.inputs.version }}"
Expand All @@ -34,10 +34,11 @@ jobs:
name: id_rsa
known_hosts: unnecessary

- name: Setup Node JS
uses: actions/setup-node@v3
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'

- name: Check dead links
uses: ./.github/actions/dead-links
Expand Down
50 changes: 14 additions & 36 deletions .github/workflows/deploy_whole_doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,23 @@ on:
workflow_dispatch:

env:
NODE_VERSION: 16
NODE_VERSION: 20

jobs:
prepare-matrix:
name: Prepare matrix by getting the repo names from repositories.json
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
uses: actions/checkout@v4

- name: Install yq
run: |
sudo apt-get update
sudo apt-get install python python3-pip
pip3 install yq
shell: bash

- name: Get repo names
id: set-matrix
run: |
Expand All @@ -43,25 +42,14 @@ jobs:
AWS_DEFAULT_REGION: us-west-1
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install Node JS
uses: actions/setup-node@v3
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

cache: 'npm'

- name: Deploy artefact for production
uses: ./.github/actions/deploy_fw_artifacts
if: ${{ github.ref == 'refs/heads/master' }}
Expand All @@ -87,26 +75,15 @@ jobs:
steps:
- name: Recap of the build
run: echo "Build and deploy documentation for ${{ matrix.repo.repo_name }}-${{ matrix.repo.doc_version }}"

- name: Checkout
uses: actions/checkout@v2

- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Checkout
uses: actions/checkout@v4

- name: Checkout repository
uses: actions/setup-node@v3
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'

- name: Install SSH key
uses: shimataro/ssh-key-action@v2
Expand Down Expand Up @@ -155,6 +132,7 @@ jobs:
- name: Invalidate CloudFront for next-docs.kuzzle.io
if: ${{ github.ref != 'refs/heads/master' }}
run: aws cloudfront create-invalidation --distribution-id E2ZCCEK9GRB49U --paths "/*"

- name: Invalidate CloudFront for docs.kuzzle.io
if: ${{ github.ref == 'refs/heads/master' }}
run: aws cloudfront create-invalidation --distribution-id E3D6RP0POLCJMM --paths "/*"
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
/.idea
.DS_Store
node_modules
dist
algolia-records.json
frontmatter-errors.json
frontmatter-fixes.json
dead_links.json
.vscode
.cache
.temp

.repos/plugin*
.repos/sdk-*
.repos/kuzzle*
.repos/paas*
.repos/iot-platform*

version.md
frontmatter-lint-errors.json
Loading

0 comments on commit e935798

Please sign in to comment.