Skip to content

Commit a81e762

Browse files
committed
Update docs.yml
1 parent 086f546 commit a81e762

File tree

1 file changed

+32
-6
lines changed

1 file changed

+32
-6
lines changed

.github/workflows/docs.yml

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,25 @@ on:
55
branches:
66
- main
77

8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: false
16+
17+
defaults:
18+
run:
19+
shell: bash
20+
821
jobs:
922
build:
1023
runs-on: ubuntu-latest
1124

1225
steps:
13-
- uses: actions/checkout@v2
26+
- uses: actions/checkout@v4
1427

1528
- name: Setup PHP
1629
uses: shivammathur/setup-php@v2
@@ -22,8 +35,21 @@ jobs:
2235
composer install
2336
composer run-script phpdoc
2437
25-
- name: Deploy to GH Pages
26-
uses: maxheld83/ghpages@v0.3.0
27-
env:
28-
BUILD_DIR: 'build/api/'
29-
GH_PAT: ${{ secrets.GH_PAT }}
38+
- name: Upload artifact
39+
uses: actions/upload-pages-artifact@v3
40+
with:
41+
path: ./build/api
42+
43+
deploy:
44+
environment:
45+
name: github-pages
46+
url: ${{ steps.deployment.outputs.page_url }}
47+
48+
runs-on: ubuntu-latest
49+
50+
needs: build
51+
52+
steps:
53+
- name: Deploy to GitHub Pages
54+
id: deployment
55+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)