Skip to content

Commit

Permalink
Test seperately generate docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ajparsons committed Sep 4, 2023
1 parent c7880d3 commit a0ad9e1
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Generate docs

permissions:
contents: write
pages: write
id-token: write

on:
push:
branches: ["ga-docs"]

jobs:
docs:
name: Generate documentation
runs-on: ubuntu-latest

steps:

- uses: actions/checkout@v4
with:
submodules: true

- name:
uses: ./.github/actions/setup-twfy
with:
php_version: "7.4"

- name: Build documentation
run: |
sudo apt-get update && sudo apt-get install -y graphviz
rm -rf docs || exit 0
mkdir docs
./vendor/bin/phpdoc
- name: Setup Pages
uses: actions/configure-pages@v3

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: docs


deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: docs
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

- uses: geekyeggo/delete-artifact@v2
with:
name: github-pages

0 comments on commit a0ad9e1

Please sign in to comment.