-
Notifications
You must be signed in to change notification settings - Fork 11
51 lines (49 loc) · 1.42 KB
/
docs.yml
File metadata and controls
51 lines (49 loc) · 1.42 KB
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
49
50
51
name: Docs
permissions:
# contents permission to update benchmark contents in gh-pages branch
contents: write
on:
workflow_dispatch:
push:
branches: [master]
tags:
- "v*"
jobs:
docs:
name: build and push static docs
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: ["18.13"]
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
- name: "Git Fetch & Checkout"
run: |
git config --local user.email "team@fluvio.io"
git config --local user.name "Fluvio Authors"
git fetch --all
git checkout -b docs --track origin/docs
git merge -X theirs origin/master -m "Merge remote-tracking branch 'origin/master' into docs"
- name: Install Build Dependencies
run: |
npm install
- name: Build docs
run: |
make run_docs
touch docs/.nojekyll
- name: Commit files
run: |
git add --force docs
git commit -m "Updated Fluvio Node.js client docs" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: docs
github-token: ${{ secrets.GITHUB_TOKEN }}