Publish Documentation #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Publish Documentation | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: swift:5.9 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install rsync 📚 | |
run: | | |
apt-get update && apt-get install -y rsync | |
- name: Install Mint | |
run: | | |
git clone https://github.com/yonaskolb/Mint.git | |
cd Mint | |
swift run mint install yonaskolb/mint | |
cd .. | |
rm -rf Mint | |
echo "/root/.mint/bin" >> $GITHUB_PATH | |
- name: Build docc | |
run: | | |
mint install apple/swift-docc@main | |
- name: Build | |
env: | |
DOCC: docc | |
run: | | |
./scripts/build-docc.sh | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: docs/hummingbird-docs | |
target-folder: docs |