Skip to content

Commit cf4914e

Browse files
committed
fix: something
1 parent 6c73164 commit cf4914e

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/documentation.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,26 @@ jobs:
99
runs-on: ubuntu-latest
1010
env:
1111
github_sha: $GITHUB_SHA
12+
workspace: $GITHUB_WORKSPACE
1213
steps:
1314
- name: Checkout repository
1415
uses: actions/checkout@v4
16+
with:
17+
path: main
1518
- name: Generating documentation
1619
run: |
17-
cd ./stack-control-doc
18-
cargo run -- ./documentation.json
19-
cd ../..
20+
cd ${{env.workspace}}/main/stack-control-doc
21+
cargo run -- ${{env.workspace}}/documentation.json
22+
cd ${{env.workspace}}
2023
- name: Loading documentation branch
2124
uses: actions/checkout@v4
2225
with:
2326
ref: 'gen-documentation'
27+
path: doc
2428
- name: Publishing documentation
2529
run: |
26-
cp ../stack-control/stack-control-doc/documentation.json ./documentation_v1.json
30+
cd ${{env.workspace}}/doc
31+
cp ${{env.workspace}}/documentation.json ./documentation_v1.json
2732
git config --global user.name 'CREAsTIVE'
2833
git config --global user.email 'CREAsTIVE@users.noreply.github.com'
2934
git commit -am "docs: documentation update for ${{env.github_sha}}"

0 commit comments

Comments
 (0)