Skip to content

Jazzy

Jazzy #50

Workflow file for this run

name: Jazzy
on:
release:
types: [published]
workflow_dispatch:
jobs:
Jazzy:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Install
run: |
brew install sourcekitten
gem install jazzy
- name: Generate Documentation (Jazzy)
run: ./scripts/generateDocumentation.sh
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: API Docs
path: docs
- name: Push to gh-pages
run: |
git config --global user.email "${GITHUB_ACTOR}"
git config --global user.name "${GITHUB_ACTOR}@users.noreply.github.com"
git clone "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" out
cd out
git checkout gh-pages
git rm -rf .
cd ..
cp -a docs/. out/.
cd out
git add -A
git commit -m "Automated deployment to GitHub Pages: ${GITHUB_SHA}" --allow-empty
git push origin gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}