Skip to content

Commit 1952909

Browse files
committed
refactored docs generation
1 parent aa3ebd7 commit 1952909

2 files changed

Lines changed: 13 additions & 7 deletions

File tree

.github/actions/generate-docs/action.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,10 @@ runs:
3838
shell: bash
3939
- name: 'Move files from staging to target directory'
4040
run: mv ${{ inputs.staging-directory }} ${{ inputs.target-directory }}
41-
shell: bash
41+
shell: bash
42+
- name: 'Push documentation to docs branch'
43+
uses: ./.github/actions/push-changes
44+
with:
45+
working-directory: ${{ inputs.target-directory }}
46+
target-branch: 'docs'
47+
commit-message: 'Update docs'

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -217,12 +217,12 @@ jobs:
217217
docfx-json-manifest: './docfx/api-reference.json'
218218
staging-directory: './docs/temp/**'
219219
target-directory: './docs/${{ env.friendly-version }}/'
220-
- name: 'Push documentation to docs branch'
221-
uses: ./.github/actions/push-changes
222-
with:
223-
working-directory: './docs/${{ env.friendly-version }}/'
224-
target-branch: 'docs'
225-
commit-message: 'Update docs for version ${{ env.friendly-version }}'
220+
# - name: 'Push documentation to docs branch'
221+
# uses: ./.github/actions/push-changes
222+
# with:
223+
# working-directory: './docs/${{ env.friendly-version }}/'
224+
# target-branch: 'docs'
225+
# commit-message: 'Update docs for version ${{ env.friendly-version }}'
226226
# - name: Upload artifact
227227
# uses: actions/upload-pages-artifact@v3
228228
# with:

0 commit comments

Comments
 (0)