Skip to content

Commit

Permalink
Update worflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ns-vasilev committed Apr 30, 2024
1 parent a9224c6 commit 5679fcd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
15 changes: 1 addition & 14 deletions .github/actions/publish_pages/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
--hosting-base-path flare/${{ inputs.base_path }};
13 changes: 12 additions & 1 deletion .github/workflows/publish-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,15 @@ jobs:
uses: ./.github/actions/publish_pages
with:
target: ${{ matrix.target }}
base_path: ${{ matrix.base_path }}
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

0 comments on commit 5679fcd

Please sign in to comment.