Skip to content

Auto-publish website #22704

Auto-publish website

Auto-publish website #22704

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Auto-publish website
# Controls when the workflow will run
on:
schedule:
- cron: "0 * * * *"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
with:
token: ${{ secrets.GH_PAT }}
- name: authorize
run: |
git config --local user.email "${GITHUB_ACTOR}@bots.github.com"
git config --local user.name "github-actions[bot]"
- name: Setup PHP
uses: shivammathur/setup-php@v2
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
php-version: 8.1
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Build docs
run: ./vendor/bin/robo build:docs
- name: Build changelog
run: ./vendor/bin/robo changelog
env:
GH_PAT: ${{ secrets.GH_PAT }}
- name: Publish docs
run: ./vendor/bin/robo publish