chore(docs): update deps/renovate digest to 68c05cf #13629
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: | |
PDM_VERSION: 2.22.1 # renovate: datasource=pypi depName=pdm | |
HUSKY: 0 # disable husky on CI | |
jobs: | |
build: | |
name: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
submodules: true | |
- name: Setup pnpm | |
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 | |
with: | |
standalone: true | |
- name: Set up Node.js | |
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 | |
with: | |
node-version-file: .node-version | |
cache: 'pnpm' # doesn't cache cypress | |
cache-dependency-path: '**/pnpm-lock.yaml' | |
- name: Setup PDM | |
uses: pdm-project/setup-pdm@b2472ca4258a9ea3aee813980a0100a2261a42fc # v4.2 | |
with: | |
python-version-file: .python-version | |
version: ${{ env.PDM_VERSION }} | |
cache: true | |
- 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 | |
pdm --version | |
- name: Cache node_modules and cypress | |
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 | |
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@22f96e34e9185b642c5567cc26d1df952f5c9d10 # v1.28.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@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 | |
with: | |
name: site | |
path: site/ | |
if-no-files-found: error | |
- name: Cypress run | |
uses: cypress-io/github-action@57b70560982e6a11d23d4b8bec7f8a487cdbb71b # v6.7.8 | |
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@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 | |
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 |