forked from project-zot/docs-zot
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.01 KB
/
push-publish-local.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
on:
push:
branches:
- main
workflow_dispatch:
name: push-build&deploy-localRepo
permissions:
contents: write
jobs:
build:
name: Push to local - Build and deploy docs to Github Pages on local repo
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
# For site generation
- name: Install Antora
run: npm install
# For ui generation
- name: Install ui dependencies
run: npm run install:ui
- name: Build ui
run: npm run build:ui
- name: Generate Site
run: npx antora --fetch antora-playbook.yml
- name: Unzip archive
run: unzip build/site.zip -d build/site
- name: Remove archive
run: rm build/site.zip
- name: Deploy to local repo Github Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build/site