Skip to content

Commit df5e0b2

Browse files
test using action
1 parent 47becc1 commit df5e0b2

File tree

3 files changed

+20
-16
lines changed

3 files changed

+20
-16
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: 'Build Documentation'
2+
description: 'Build documentation files'
3+
runs:
4+
using: 'composite'
5+
steps:
6+
- name: Install Hugo
7+
run: |
8+
mkdir hugo
9+
curl -L https://github.com/gohugoio/hugo/releases/download/v0.150.0/hugo_0.150.0_linux-amd64.tar.gz | tar -xzf - -C hugo
10+
echo "$(pwd)/hugo" >> $GITHUB_PATH
11+
12+
- name: Install Node and dependencies
13+
uses: mongodb-labs/drivers-github-tools/node/setup@v2
14+
15+
- name: Build Docs
16+
run: npm run build:docs -- --yes

.github/workflows/build_and_commit_docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
steps:
2222
- uses: actions/checkout@v5
2323

24-
- name: "Build documentation."
25-
uses: ./.github/workflows/build_docs.yml
26-
24+
- name: "Build documentation"
25+
uses: .github/actions/build_documentation.yml
26+
2727
- name: Open Pull Request
2828
uses: peter-evans/create-pull-request@v6
2929
with:

.github/workflows/build_docs.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,4 @@ jobs:
1515

1616
steps:
1717
- uses: actions/checkout@v5
18-
19-
- name: Install Hugo
20-
run: |
21-
mkdir hugo
22-
curl -L https://github.com/gohugoio/hugo/releases/download/v0.150.0/hugo_0.150.0_linux-amd64.tar.gz | tar -xzf - -C hugo
23-
echo "$(pwd)/hugo" >> $GITHUB_PATH
24-
25-
- name: Install Node and dependencies
26-
uses: mongodb-labs/drivers-github-tools/node/setup@v2
27-
28-
- name: Build Docs
29-
run: npm run build:docs -- --yes
30-
18+
- uses: .github/actions/build_documentation.yml

0 commit comments

Comments
 (0)