Skip to content

Commit 253974f

Browse files
authored
Configure working directory for Antora and git commands (#29)
Added working directory for Antora commands and updated git checkout command. This update adds a switch to create or update a branch with the same name as the current branch in the HTML repository
1 parent 1d5267b commit 253974f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/build-and-publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,16 @@ jobs:
3636
node-version: '18'
3737
- name: Install Antora
3838
run: npm i antora
39+
working-directory: ./asciidoc
3940
- name: Generate Site
4041
run: npx antora antora-playbook.yml
42+
working-directory: ./asciidoc
4143
- name: push to rtos-docs-html
4244
run: |
4345
cd "${{ github.workspace }}/rtos-docs-html"
4446
47+
git checkout -B ${{ github.ref_name }}
48+
4549
git config user.name "eclipse-threadx-bot"
4650
git config user.email "<threadx-bot@eclipse.org>"
4751

0 commit comments

Comments
 (0)