-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (28 loc) · 941 Bytes
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# https://gist.github.com/mikroskeem/fddaf7a4f80959d6e5f4711904885fae
name: "Publish documentation"
on:
push:
branches:
- "main"
jobs:
publish-documentation:
permissions:
id-token: "write"
pages: "write"
environment:
name: "github-pages"
url: "${{ steps.deployment.outputs.page_url }}"
runs-on: "ubuntu-latest"
steps:
- name: Build Package
uses: Anatoly03/pixelwalker.js/.github/workflows/build.yml@main
- name: "Building Documentation"
run: npm run docs
- id: "upload-documentation"
name: "Uploading Pages artifact"
uses: "actions/upload-pages-artifact@v2"
with:
path: "docs/"
- id: "deployment"
name: "Deploy to GitHub Pages"
uses: "actions/deploy-pages@v4"