Skip to content

Commit

Permalink
Create deploy-dooc.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rismay committed Jun 30, 2024
1 parent ce01c93 commit 19b861a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/deploy-dooc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Deploy DocC

on:
push:
branches: [ main ]

jobs:
deploy_docs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Build Documentation
run: |
swift package --allow-writing-to-directory ./docs \
generate-documentation --target SPMConfigSteward \
--output-path ./docs
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs

0 comments on commit 19b861a

Please sign in to comment.