feat: initial commit #10
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
# @format | |
name: Documentation | |
on: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: docs-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build-and-push-documentation: | |
runs-on: macos-15 | |
steps: | |
- name: Select Xcode 16.2 | |
run: sudo xcode-select -s /Applications/Xcode_16.2.app | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: mise setup | |
uses: jdx/mise-action@v2 | |
with: | |
install: true | |
- name: Checkout gh-pages Branch | |
uses: actions/checkout@v4 | |
with: | |
ref: gh-pages | |
path: docs-out | |
- name: Build documentation | |
run: > | |
./scripts/build-docs.sh | |
- name: Fix permissions | |
run: "sudo chown -R $USER .docs-out" | |
- name: Publish documentation to GitHub Pages | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: .docs-out | |
single-commit: true |