Migrate extension sources from pecl to pie #292
Workflow file for this run
This file contains hidden or 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: Docs build test and auto deploy | |
| on: | |
| pull_request: | |
| branches: [ "v3" ] | |
| types: [ opened, synchronize, reopened ] | |
| paths: | |
| - 'config/**.yml' | |
| - 'docs/**' | |
| - 'package.json' | |
| - 'yarn.lock' | |
| - '.github/workflows/vitepress-deploy.yml' | |
| push: | |
| branches: [ "v3" ] | |
| paths: | |
| - 'config/**.yml' | |
| - 'docs/**' | |
| - 'package.json' | |
| - 'yarn.lock' | |
| - '.github/workflows/vitepress-deploy.yml' | |
| jobs: | |
| build: | |
| name: Deploy docs | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'crazywhalecc/static-php-cli' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: yarn | |
| - name: Install documentation dependencies | |
| run: yarn install --frozen-lockfile | |
| - name: "Install PHP for official runners" | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| coverage: none | |
| tools: composer:v2 | |
| php-version: 8.4 | |
| ini-values: memory_limit=-1 | |
| extensions: curl, openssl, mbstring | |
| - 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: Build | |
| run: yarn docs:build | |
| # Deploy to GitHub Pages only when the workflow is triggered by a push to the v3 branch | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/v3' | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: docs/.vitepress/dist |