Skip to content

gh-pages

gh-pages #2279

Workflow file for this run

name: gh-pages
on:
pull_request:
workflow_dispatch:
push:
branches:
- main
schedule:
- cron: '0 0 * * *' # Midnight - every night
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
fail-fast: true
name: Deploy to gh-pages
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Setup PHP
uses: shivammathur/setup-php@2.37.2
with:
php-version: 8.5
tools: composer:v2
coverage: none
- name: Install dependencies
run: |
composer -g config github-oauth.github.com ${{ secrets.GITHUB_TOKEN }}
composer install --prefer-dist --no-interaction --no-progress
- name: Build satis
run: |
./vendor/bin/satis build ./satis.json ./public
shopt -s globstar
sed -i -e 's/\(pear-pear\.horde\.org\/.*\)/\L\1/' public/**/*.json
sed -i -e 's/"type": "file",/"type": "tar",/' public/**/*.json
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4.9.0
if: github.event_name != 'pull_request'
with:
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: public # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch