Skip to content

Commit

Permalink
Add gen-ext-docs command (#462)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazywhalecc authored May 29, 2024
1 parent 5d2bd93 commit 968b3ac
Show file tree
Hide file tree
Showing 4 changed files with 395 additions and 5 deletions.
33 changes: 29 additions & 4 deletions .github/workflows/update-docs-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ jobs:
steps:
- name: "Checkout static-php-cli"
uses: actions/checkout@v4
with:
ref: main
path: static-php-cli

- name: "Checkout static-php-cli-docs"
uses: actions/checkout@v4
Expand All @@ -33,7 +30,35 @@ jobs:
git config --global user.name "GitHub Actions"
- name: "Copy Config Files"
run: cp -r static-php-cli/config/* static-php-cli-docs/docs/.vitepress/config/
run: cp -r config/* static-php-cli-docs/docs/.vitepress/config/

- name: "Install PHP for official runners"
uses: "shivammathur/setup-php@v2"
with:
coverage: none
tools: composer:v2
php-version: 8.2
ini-values: memory_limit=-1

- name: "Get Composer Cache Directory"
id: composer-cache
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: "Cache Composer dependencies"
uses: "actions/cache@v4"
with:
path: "${{ steps.composer-cache.outputs.dir }}"
key: "php-8.2-locked-composer-${{ hashFiles('**/composer.lock') }}"
restore-keys: |
php-8.2-locked-composer
- name: "Install Locked Dependencies"
run: "composer install --no-interaction --no-progress"

- name: "Generate Extension Support List"
run: |
bin/spc dev:gen-ext-docs > static-php-cli-docs/docs/extensions.md
- name: "Commit and Push Changes"
run: |
Expand Down
Loading

0 comments on commit 968b3ac

Please # to comment.