File tree Expand file tree Collapse file tree 1 file changed +32
-6
lines changed Expand file tree Collapse file tree 1 file changed +32
-6
lines changed Original file line number Diff line number Diff line change 5
5
branches :
6
6
- main
7
7
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
+
8
21
jobs :
9
22
build :
10
23
runs-on : ubuntu-latest
11
24
12
25
steps :
13
- - uses : actions/checkout@v2
26
+ - uses : actions/checkout@v4
14
27
15
28
- name : Setup PHP
16
29
uses : shivammathur/setup-php@v2
22
35
composer install
23
36
composer run-script phpdoc
24
37
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
You can’t perform that action at this time.
0 commit comments