Skip to content

chore(flake): update lock (#113) #64

chore(flake): update lock (#113)

chore(flake): update lock (#113) #64

Workflow file for this run

name: Docs
on:
push:
branches:
- main
workflow_dispatch:
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v16
- name: Setup Cachix
uses: cachix/cachix-action@v15
with:
name: opentelemetry
extraPullNames: nix-shell, php-src-nix
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Setup Nix magic cache
uses: DeterminateSystems/magic-nix-cache-action@v8
- name: Instantiate Nix develop
uses: nicknovitski/nix-develop@v1
- name: Get composer cache directory
id: composercache
run: echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ${{ steps.composercache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: Update project dependencies
run: |
composer update --no-interaction --no-progress --ansi
- name: Generate configuration reference
run: composer test:console -- config:dump open_telemetry > docs/src/reference.yaml
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: 'docs/package-lock.json'
- name: Install Dependencies
run: cd docs && npm ci
- name: Build Docs
run: cd docs && npm run build
- name: Deploy Docs
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: docs/src/.vuepress/dist