Add puzzle emoji to README title #193
This file contains hidden or 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: | |
| push: | |
| branches: [master] | |
| paths: | |
| - '.github/workflows/jazzy.yml' | |
| - '.jazzy.yaml' | |
| - '**/*.md' | |
| - '**/*.jpg' | |
| - 'Gemfile*' | |
| - 'Package*' | |
| - 'Sources/**/*.swift' | |
| pull_request: | |
| paths: | |
| - '.github/workflows/jazzy.yml' | |
| - '.jazzy.yaml' | |
| - '**/*.md' | |
| - '**/*.jpg' | |
| - 'Gemfile*' | |
| - 'Package*' | |
| - 'Sources/**/*.swift' | |
| jobs: | |
| Jazzy: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: norionomura/jazzy:0.13.3_swift-5.2.1 | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - run: bundle install --path vendor/bundle | |
| - run: swift build | |
| - name: Generate documentation json | |
| run: sourcekitten doc --spm-module InterposeKit > interposekit.json | |
| - name: Run jazzy | |
| run: bundle exec jazzy --clean --sourcekitten-sourcefile interposekit.json | |
| - name: Validate documentation coverage | |
| run: | | |
| if ruby -rjson -e "j = JSON.parse(File.read('docs/undocumented.json')); exit j['warnings'].length != 0"; then | |
| echo "Undocumented declarations:" | |
| cat docs/undocumented.json | |
| exit 1 | |
| fi | |
| - name: Upload Artifact | |
| uses: actions/upload-artifact@v1 | |
| with: | |
| name: API Docs | |
| path: docs | |
| - name: Push to gh-pages | |
| if: github.event_name == 'push' | |
| 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 | |
| echo "interposekit.com " > CNAME | |
| 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 }} |