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 3469df2
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/update_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,19 @@ 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
with:
fetch-depth: 0

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

- name: Generate
run: composer run apigen

- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v1
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

0 comments on commit 3469df2

Please sign in to comment.