File tree Expand file tree Collapse file tree 1 file changed +22
-3
lines changed Expand file tree Collapse file tree 1 file changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ name: Deploy Docs
3
3
on :
4
4
push :
5
5
6
+ permissions :
7
+ contents : read
8
+ pages : write
9
+ id-token : write
10
+
6
11
jobs :
7
12
build :
8
13
name : Build and test
22
27
run : |
23
28
xcrun docc process-archive transform-for-static-hosting ./DerivedData/Build/Products/Debug/PowerSync.doccarchive/ --output-path ./docs
24
29
25
- - name : Debug
26
- run : |
27
- ls -la ./docs
30
+ - name : Upload static files as artifact
31
+ id : deployment
32
+ uses : actions/upload-pages-artifact@v3
33
+ with :
34
+ path : docs/documentation/PowerSync
35
+
36
+ # Deployment job
37
+ deploy :
38
+ environment :
39
+ name : github-pages
40
+ url : ${{ steps.deployment.outputs.page_url }}
41
+ runs-on : ubuntu-latest
42
+ needs : build
43
+ steps :
44
+ - name : Deploy to GitHub Pages
45
+ id : deployment
46
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments