Skip to content

Commit 5c1f7b1

Browse files
spike-rabbitfh1ch
authored andcommitted
build: deploy examples to GitHub pages on main runs
1 parent dae3455 commit 5c1f7b1

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/build.yaml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,25 @@ jobs:
9898
with:
9999
name: pages
100100
path: dist/design
101-
# TODO: build design system
101+
102+
publish-documentation:
103+
if: github.ref_name == github.event.repository.default_branch
104+
runs-on: ubuntu-22.04
105+
permissions:
106+
pages: write
107+
id-token: write
108+
needs:
109+
- documentation
110+
steps:
111+
- uses: actions/configure-pages@v5
112+
- uses: actions/download-artifact@v4
113+
with:
114+
name: pages
115+
path: dist/design
116+
- uses: actions/upload-pages-artifact@v3
117+
with:
118+
path: 'dist/design'
119+
- uses: actions/deploy-pages@v4
102120
# TODO: add release job
103121
# TODO: build PR previews
104122
# TODO: e2e test

0 commit comments

Comments
 (0)