chore(docs): update deps/renovate digest to 0373661 #8532
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish-docs | |
on: | |
push: | |
branches: | |
- '**' | |
- '!gh-pages' | |
pull_request: | |
branches: | |
- 'main' | |
env: | |
NODE_VERSION: 20.9.0 # renovate: datasource=node depName=node | |
PYTHON_VERSION: 3.12.0 # renovate: datasource=github-releases depName=python packageName=containerbase/python-prebuild | |
# Don't use PIPENV_VERSION: https://github.com/pypa/pipenv/issues/3633#issuecomment-478250721 | |
RENOVATE_PIPENV_VERSION: 2023.10.24 # renovate: datasource=pypi depName=pipenv | |
jobs: | |
build: | |
name: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
submodules: true | |
- name: enable corepack | |
run: corepack enable | |
- name: Set up Node.js ${{ env.NODE_VERSION }} | |
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: 'pnpm' # doesn't cache cypress | |
cache-dependency-path: '**/pnpm-lock.yaml' | |
- name: enable corepack | |
run: corepack enable | |
- name: Set up Python ${{ env.PYTHON_VERSION }} | |
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
cache: 'pipenv' | |
- name: Init platform | |
run: | | |
git config --global core.autocrlf false | |
git config --global core.symlinks true | |
git config --global user.email 'bot@renovateapp.com' | |
git config --global user.name 'Renovate Bot' | |
python --version | |
pip install pipenv==${{ env.RENOVATE_PIPENV_VERSION }} | |
pipenv --version | |
- name: Cache node_modules and cypress | |
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2 | |
with: | |
path: | | |
~/.cache/Cypress | |
node_modules | |
key: npm-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} | |
- name: Installing dependencies | |
run: make install | |
- name: Run Prettier | |
run: pnpm prettier | |
- name: Run shellcheck | |
uses: reviewdog/action-shellcheck@96fa305c16b0f9cc9b093af22dcd09de1c8f1c2d # v1.19.0 | |
with: | |
reporter: github-pr-review | |
filter_mode: nofilter | |
path: | | |
bin | |
.devcontainer | |
.husky | |
pattern: '*.sh' | |
check_all_files_with_shebangs: 'true' | |
- name: Prepare docs | |
run: make prepare | |
- name: Build cache decoder | |
run: make build-decoder | |
- name: Build docs | |
run: make build-docs | |
- name: Upload site artifacts | |
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3 | |
with: | |
name: site | |
path: site/ | |
if-no-files-found: error | |
- name: Cypress run | |
uses: cypress-io/github-action@ebe8b24c4428922d0f793a5c4c96853a633180e3 # v6.6.0 | |
with: | |
start: make serve | |
wait-on: 'http://127.0.0.1:8000/' | |
# we have already installed all dependencies above | |
install: false | |
timeout-minutes: 3 | |
- name: Upload cypress artifacts | |
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3 | |
if: always() | |
with: | |
name: cypress | |
path: | | |
cypress/videos/ | |
cypress/screenshots/ | |
if-no-files-found: error | |
- name: Publish docs | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
run: make deploy |