Skip to content

Commit

Permalink
Split up the workflow.
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <[email protected]>
  • Loading branch information
dblock committed Apr 24, 2024
1 parent 03387e7 commit fa259bc
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions .github/workflows/update_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,16 @@ on:
- 'src/**/*.php'

jobs:
docs-update:
build:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Use PHP 8.2
uses: shivammathur/setup-php@v2
with:
Expand All @@ -37,12 +31,24 @@ jobs:

- name: Generate
run: composer run apigen

- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
path: 'docs'
path: docs

deploy:
runs-on: ubuntu-latest
needs: build
permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4

0 comments on commit fa259bc

Please sign in to comment.