Merge pull request #212 from Novactive/fix-captcha-caching #172
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: Documentation | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
documentation: | |
name: Generate the documentation | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@master | |
with: | |
php-version: 7.4 | |
id: php | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress --no-suggest --no-interaction | |
- name: Generate the HTML | |
run: bin/releaser doc | |
- uses: actions/checkout@v2 | |
with: | |
ref: gh-pages | |
clean: false | |
- name: Update the branch | |
run: | | |
rsync -avzcC documentation/export/ docs/ | |
mv docs/master/README.md.html docs/master/index.html | |
git add docs/ | |
git config --global user.email "[email protected]" | |
git config --global user.name "Github Actions Bot" | |
git commit -m "Changes in the documentation" | |
git push -f origin gh-pages:gh-pages | |