Github Pages #7952
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
# This file is part of the sshilko/php-api-myrpc package. | |
# | |
# (c) Sergei Shilko <contact@sshilko.com> | |
# | |
# MIT License | |
# | |
# For the full copyright and license information, please view the LICENSE | |
# file that was distributed with this source code. | |
# @license https://opensource.org/licenses/mit-license.php MIT | |
name: Github Pages | |
on: | |
schedule: | |
# @see https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule | |
# * is a special character in YAML so you have to quote this string | |
# ┌───────────── minute (0 - 59) | |
# │ ┌───────────── hour (0 - 23) | |
# │ │ ┌───────────── day of the month (1 - 31) | |
# │ │ │ ┌───────────── month (1 - 12) | |
# │ │ │ │ ┌───────────── day of the week (0 - 6) | |
# │ │ │ │ │ | |
# │ │ │ │ │ | |
# │ │ │ │ │ | |
# * * * * * | |
- cron: "0 * * * 0" | |
jobs: | |
pages-directory-listing-release: | |
runs-on: ubuntu-latest | |
timeout-minutes: 3 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: pages | |
- name: Generate Directory Listings | |
uses: jayanta525/github-pages-directory-listing@v2.0.0 | |
with: | |
FOLDER: . | |
- uses: nick-fields/retry@v2 | |
name: Commit directory-listing | |
continue-on-error: true | |
with: | |
timeout_seconds: 20 | |
max_attempts: 3 | |
retry_on: error | |
command: | | |
git status | |
git config user.name github-actions | |
git config user.email github-actions@github.com | |
git pull | |
git add "**/index.html" | |
git reset php/phpdoc/index.html | |
git commit -m "generated directory-listing docs from revision ${GITHUB_SHA::7}" | |
git push |