Skip to content

Commit

Permalink
Update docs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed May 6, 2024
1 parent 086f546 commit a81e762
Showing 1 changed file with 32 additions and 6 deletions.
38 changes: 32 additions & 6 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,25 @@ on:
branches:
- main

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

concurrency:
group: "pages"
cancel-in-progress: false

defaults:
run:
shell: bash

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -22,8 +35,21 @@ jobs:
composer install
composer run-script phpdoc
- name: Deploy to GH Pages
uses: maxheld83/[email protected]
env:
BUILD_DIR: 'build/api/'
GH_PAT: ${{ secrets.GH_PAT }}
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./build/api

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

runs-on: ubuntu-latest

needs: build

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

0 comments on commit a81e762

Please sign in to comment.