Skip to content

Build Docs

Build Docs #7

Workflow file for this run

name: Build Docs
on:
workflow_dispatch:
env:
AUTODOCS_OUTPUT: "${{ github.workspace }}"
AUTODOCS_CACHE: "${{ github.workspace }}/storage/cache"
AUTODOCS_TEMPLATES: "${{ github.workspace }}/storage/templates"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
# Install Dependencies
- name: Install dependencies
run: composer install --prefer-dist --no-progress
# Build Docs
- name: Run Autodocs
run: ./autodocs build
############################################################################################
# Send a Pull Request
############################################################################################
- name: Create a PR
uses: peter-evans/create-pull-request@v5
id: cpr
with:
path: "${{ github.workspace }}"
commit-message: Update content
title: "[AutoDocs] Updated README"
body: "README auto-update"
labels: |
documentation
automated