fix: add PHP 8.4 compatibility to last release compatible with PHP 7.… #207
Workflow file for this run
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: Generate Documentation | |
on: | |
push: | |
tags: | |
- "*" | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
docs: | |
name: "Generate and Deploy Documentation" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- id: getTag | |
name: Get Tag | |
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/} | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 7.4 | |
- name: Install composer dependencies | |
uses: nick-invision/retry@v3 | |
with: | |
timeout_minutes: 10 | |
max_attempts: 3 | |
command: composer install | |
- name: Generate Documentation | |
uses: docker://php:8.1-cli | |
with: | |
entrypoint: ./dev/sh/build-docs.sh | |
args: ${{ steps.getTag.outputs.tag }} | |
- run: | | |
git submodule add -q -f -b gh-pages https://github.com/${{github.repository}} ghpages | |
rsync -aP tmp_gh-pages/* ghpages/ | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@releases/v3 | |
with: | |
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: ghpages |