Skip to content

Commit 706ff05

Browse files
authored
Merge pull request #10 from nosqlbench/simplify_import_docs
Simplify Import Docs
2 parents 254b927 + f1fea0c commit 706ff05

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+134
-277
lines changed

.github/workflows/build-site.yml

Lines changed: 3 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -7,71 +7,20 @@ on:
77

88
jobs:
99

10-
import-generated:
11-
runs-on: ubuntu-latest
12-
if: github.ref != 'refs/heads/master'
13-
14-
steps:
15-
- name: set git username
16-
run: git config --global user.email "${{ secrets.NBDROID_EMAIL }}"
17-
18-
- name: set git email
19-
run: git config --global user.name "${{ secrets.NBDROID_NAME }}"
20-
21-
- run: ls -la
22-
23-
- name: clone nosqlbench-build-docs
24-
env:
25-
NBDROID_NAME: ${{ secrets.NBDROID_NAME }}
26-
NBDROID_TOKEN: ${{ secrets.NBDROID_TOKEN }}
27-
run: |
28-
git clone https://${{secrets.NBDROID_NAME}}:${{secrets.NBDROID_TOKEN}}@github.com/nosqlbench/nosqlbench-build-docs.git nosqlbench-build-docs
29-
cd nosqlbench-build-docs
30-
echo "files listing"
31-
find .
32-
git remote set-url origin https://${{secrets.NBDROID_NAME}}:${{secrets.NBDROID_TOKEN}}@github.com/nosqlbench/nosqlbench-build-docs.git
33-
git remote -v
34-
35-
- name: 'Import Content'
36-
run: |
37-
set -x
38-
cd nosqlbench-build-docs
39-
./doimport.sh
40-
41-
- name: "commit imported changes"
42-
env:
43-
NBDROID_NAME: ${{ secrets.NBDROID_NAME }}
44-
NBDROID_TOKEN: ${{ secrets.NBDROID_TOKEN }}
45-
run: |
46-
set -x
47-
pwd
48-
cd nosqlbench-build-docs
49-
git add site
50-
git add -u
51-
CHANGES=$(git status --porcelain 2>/dev/null| wc -l)
52-
echo "found $CHANGES to push for doc updates"
53-
if (( $CHANGES > 0 ))
54-
then
55-
git commit -m"docs update for $GITHUB_REF"
56-
git push
57-
fi
58-
59-
6010
build-site:
61-
needs: import-generated
6211
runs-on: ubuntu-latest
63-
if: github.ref != 'refs/heads/master'
12+
if: github.ref == 'refs/heads/master'
6413
steps:
6514

6615
- name: 'Checkout'
67-
uses: actions/checkout@master
16+
uses: actions/checkout@v4
6817

6918
- name: 'set CNAME'
7019
run: |
7120
echo "builddocs.nosqlbench.io" > site/static/CNAME
7221
7322
- name: 'Build and Deploy Static Site'
74-
uses: shalzz/zola-deploy-action@master
23+
uses: shalzz/zola-deploy-action@0.19.2
7524
env:
7625
BUILD_DIR: ./site
7726
GITHUB_TOKEN: ${{ secrets.NBDROID_TOKEN }}

.github/workflows/import-docs.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: import-generated
2+
3+
#on:
4+
# push:
5+
# branches:
6+
# - main
7+
8+
jobs:
9+
10+
import-generated:
11+
runs-on: ubuntu-latest
12+
if: github.ref != 'refs/heads/master'
13+
14+
steps:
15+
- name: set git username
16+
run: git config --global user.email "${{ secrets.NBDROID_EMAIL }}"
17+
18+
- name: set git email
19+
run: git config --global user.name "${{ secrets.NBDROID_NAME }}"
20+
21+
- run: ls -la
22+
23+
- name: clone nosqlbench-build-docs
24+
env:
25+
NBDROID_NAME: ${{ secrets.NBDROID_NAME }}
26+
NBDROID_TOKEN: ${{ secrets.NBDROID_TOKEN }}
27+
run: |
28+
git clone https://${{secrets.NBDROID_NAME}}:${{secrets.NBDROID_TOKEN}}@github.com/nosqlbench/nosqlbench-build-docs.git nosqlbench-build-docs
29+
cd nosqlbench-build-docs
30+
echo "files listing"
31+
find .
32+
git remote set-url origin https://${{secrets.NBDROID_NAME}}:${{secrets.NBDROID_TOKEN}}@github.com/nosqlbench/nosqlbench-build-docs.git
33+
git remote -v
34+
35+
- name: 'Import Content'
36+
run: |
37+
set -x
38+
cd nosqlbench-build-docs
39+
#./doimport.sh
40+
41+
- name: "commit imported changes"
42+
env:
43+
NBDROID_NAME: ${{ secrets.NBDROID_NAME }}
44+
NBDROID_TOKEN: ${{ secrets.NBDROID_TOKEN }}
45+
run: |
46+
set -x
47+
pwd
48+
cd nosqlbench-build-docs
49+
git add site
50+
git add -u
51+
CHANGES=$(git status --porcelain 2>/dev/null| wc -l)
52+
echo "found $CHANGES to push for doc updates"
53+
if (( $CHANGES > 0 ))
54+
then
55+
git commit -m"docs update for $GITHUB_REF"
56+
git push
57+
fi

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,6 @@ dist
110110
/.idea/
111111
/bin/zola
112112
/import/
113+
114+
# macOS Finder
115+
**/.DS_Store

_import_overlays/apps/_index.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

_import_overlays/bindings/_index.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

_import_overlays/bindings/binding-concepts.md

Lines changed: 0 additions & 119 deletions
This file was deleted.

_import_overlays/drivers/_index.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

_import_overlays/drivers/driver-discovery.md

Lines changed: 0 additions & 39 deletions
This file was deleted.

_import_overlays/versions/_index.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

_import_overlays/workload_definition/_index.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)