Skip to content

Commit

Permalink
Update build-deploy-DocC.yml
Browse files Browse the repository at this point in the history
Update action versions
  • Loading branch information
jensmoes authored Mar 17, 2024
1 parent c5dfdb8 commit 00ca6cc
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build-deploy-DocC.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,24 @@ jobs:
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Force Xcode 15.2
run: sudo xcode-select -s "/Applications/Xcode_15.2.app"
- name: Build DocC
run: |
swift package resolve;
swift package plugin --allow-writing-to-directory ./docs/ generate-documentation --disable-indexing --output-path ./docs;
echo "** Archived documentation**"
echo "<script>window.location.href += \"tutorials/table-of-contents\"</script>" > docs/index.html;
swift package plugin --allow-writing-to-directory docs generate-documentation --disable-indexing --output-path ./docs;
generate-documentation \
--disable-indexing \
--transform-for-static-hosting \
--hosting-base-path '' \
--output-path docs
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
# Upload only docs directory
path: 'docs'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4

0 comments on commit 00ca6cc

Please sign in to comment.