4.1.5 #47
Workflow file for this run
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
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@v1 | |
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 }} |