23 lines
607 B
YAML
23 lines
607 B
YAML
name: Generate documentation
|
|
on:
|
|
release:
|
|
types: [published]
|
|
jobs:
|
|
deploy:
|
|
runs-on: macos-12
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: DocC
|
|
run: >
|
|
swift package --allow-writing-to-directory docs
|
|
generate-documentation --target KeyboardShortcuts
|
|
--disable-indexing
|
|
--transform-for-static-hosting
|
|
--hosting-base-path KeyboardShortcuts
|
|
--output-path docs
|
|
- name: Deploy
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: '.'
|