Skip to content

Commit 12354f3

Browse files
committed
Publish docs to GitHub pages
1 parent a25e36e commit 12354f3

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/main.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ on:
1111
env:
1212
PGDATADIR: /var/lib/postgresql/data
1313

14+
permissions:
15+
contents: read
16+
pages: write
17+
id-token: write
18+
1419
jobs:
1520
build:
1621
runs-on: ubuntu-latest
@@ -74,4 +79,17 @@ jobs:
7479
PGUSER: postgres
7580
PGPASSWORD: postgres
7681
- name: Docs
77-
run: npx typedoc
82+
run: npx typedoc
83+
- uses: actions/upload-pages-artifact@v2
84+
with:
85+
path: ./docs
86+
deploy:
87+
runs-on: ubuntu-latest
88+
environment:
89+
name: github-pages
90+
url: ${{ steps.deployment.outputs.page_url }}
91+
needs: build
92+
steps:
93+
- name: Deploy to GitHub Pages
94+
id: deployment
95+
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)