Skip to content

feat: add macOS(.V11) platforms declaration to PackageDescription #29

feat: add macOS(.V11) platforms declaration to PackageDescription

feat: add macOS(.V11) platforms declaration to PackageDescription #29

Workflow file for this run

name: Jazzy
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
Jazzy:
runs-on: ubuntu-latest
container:
image: norionomura/jazzy:latest
steps:
- uses: actions/checkout@v4
- name: ENV
run: |
uname -a
swift --version
- name: Build
run: |
swift build -v
- name: Generate documentation json
run: |
sourcekitten doc --spm-module Commands > commands.json
- name: Run jazzy
run: |
jazzy --clean --sourcekitten-sourcefile commands.json
- uses: actions/upload-artifact@v4
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:${PRIVATE_GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" out
cd out
git checkout -B 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 remote -v
git config --global user.name
git push origin gh-pages -f
env:
PRIVATE_GITHUB_TOKEN: ${{ secrets.PRIVATE_GITHUB_TOKEN }}