Skip to content

Commit ab73a7b

Browse files
pages deploy
1 parent 0004ded commit ab73a7b

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

.github/workflows/docs.yaml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ name: Deploy Docs
33
on:
44
push:
55

6+
permissions:
7+
contents: read
8+
pages: write
9+
id-token: write
10+
611
jobs:
712
build:
813
name: Build and test
@@ -22,6 +27,20 @@ jobs:
2227
run: |
2328
xcrun docc process-archive transform-for-static-hosting ./DerivedData/Build/Products/Debug/PowerSync.doccarchive/ --output-path ./docs
2429
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

0 commit comments

Comments
 (0)