Skip to content

Commit

Permalink
chore(docs): use shared doctum workflow (#574)
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer authored Aug 26, 2024
1 parent e0fa4ea commit c94ee3a
Showing 1 changed file with 14 additions and 26 deletions.
40 changes: 14 additions & 26 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,20 @@ on:
tags:
- "*"
workflow_dispatch:
inputs:
tag:
description: 'Tag to release'
pull_request:

permissions:
contents: write

jobs:
docs:
name: "Generate Project Documentation"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
- name: Install Dependencies
uses: nick-invision/retry@v3
with:
timeout_minutes: 10
max_attempts: 3
command: composer config repositories.sami vcs https://${{ secrets.GITHUB_TOKEN }}@github.com/jdpedrie/sami.git && composer require sami/sami:v4.2 && git reset --hard HEAD
- name: Generate Documentation
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: .github/actions/docs/entrypoint.sh
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages
FOLDER: .docs
name: "Generate and Deploy Documentation"
uses: GoogleCloudPlatform/php-tools/.github/workflows/doctum.yml@main
with:
title: "Google Auth Library PHP Reference Documentation"
default_version: ${{ inputs.tag || github.head_ref || github.ref_name }}
dry_run: ${{ github.event_name == 'pull_request' }}

0 comments on commit c94ee3a

Please sign in to comment.