From 5679fcdf435e7800bd559555dd5556b682ed1de2 Mon Sep 17 00:00:00 2001 From: Nikita Vasilev Date: Tue, 30 Apr 2024 17:19:38 +0400 Subject: [PATCH] Update worflows --- .github/actions/publish_pages/action.yml | 15 +-------------- .github/workflows/publish-pages.yml | 13 ++++++++++++- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/.github/actions/publish_pages/action.yml b/.github/actions/publish_pages/action.yml index fffcbf03b..72b70bd76 100644 --- a/.github/actions/publish_pages/action.yml +++ b/.github/actions/publish_pages/action.yml @@ -23,17 +23,4 @@ runs: --target ${{ inputs.target }} \ --output-path ./docs/${{ inputs.base_path }} \ --transform-for-static-hosting \ - --hosting-base-path flare/${{ inputs.base_path }}; - - - name: Commit and push generated documentation - uses: actions/checkout@v3 - shell: bash - run: | - cp -r ./docs/${{ inputs.base_path }} ./${{ inputs.base_path }} - - git config --local user.email "github-actions[bot]@users.noreply.github.com" - git config --local user.name "github-actions[bot]" - git switch gh-pages - git add ./${{ inputs.base_path }} - git commit -a -m "Generated ${{ inputs.target }} Swift DocC" - git push origin gh-pages \ No newline at end of file + --hosting-base-path flare/${{ inputs.base_path }}; \ No newline at end of file diff --git a/.github/workflows/publish-pages.yml b/.github/workflows/publish-pages.yml index dd97b76d1..a195c168f 100644 --- a/.github/workflows/publish-pages.yml +++ b/.github/workflows/publish-pages.yml @@ -37,4 +37,15 @@ jobs: uses: ./.github/actions/publish_pages with: target: ${{ matrix.target }} - base_path: ${{ matrix.base_path }} \ No newline at end of file + base_path: ${{ matrix.base_path }} + - name: Commit and push generated documentation + uses: actions/checkout@v3 + run: | + cp -r ./docs/${{ inputs.base_path }} ./${{ inputs.base_path }} + + git config --local user.email "github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" + git switch gh-pages + git add ./${{ inputs.base_path }} + git commit -a -m "Generated ${{ inputs.target }} Swift DocC" + git push origin gh-pages \ No newline at end of file