-
-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (46 loc) · 1.34 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
name: Docs
on: workflow_dispatch
jobs:
docs:
runs-on: ubuntu-latest
container: ghcr.io/geopjr/crystal-gtk:latest
steps:
- uses: actions/setup-node@v2
with:
node-version: '16'
- uses: actions/checkout@v2
with:
ref: website
- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/[email protected]
with:
version: 6.17.2
run_install: true
- name: Build website
run: |
pnpm run build
echo "libadwaita.geopjr.dev" > ./build/CNAME
- name: Push to pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
force_orphan: true
- uses: actions/checkout@v2
- name: Build docs
run: |
shards install
./bin/gi-crystal --doc
crystal docs lib/gi-crystal/src/gi-crystal.cr lib/gi-crystal/src/auto/adw-1/adw.cr
- name: Push to pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
destination_dir: docs