Skip to content

v7.0.0

v7.0.0 #117

Workflow file for this run

name: Generate Documentation
on:
release:
types: [published]
workflow_dispatch:
jobs:
build:
runs-on: macOS-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Dependencies
run: |
brew install mint
mint install apple/swift-docc@main
echo "$HOME/.mint/bin" >> $GITHUB_PATH
- name: Build
env:
DOCC: docc
run: |
./scripts/build-docc.sh
- name: Commit
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REMOTE_BRANCH: "gh-pages"
run: |
REMOTE_REPO="https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git checkout ${REMOTE_BRANCH}
rm -rf 7.x.x/
mv docs/soto-core/7.x.x/ 7.x.x/
git add --all 7.x.x
git status
git commit -m "Documentation for https://github.com/${GITHUB_REPOSITORY}/tree/${GITHUB_SHA}" -m "Generated by gen-docs.yml"
git push ${REMOTE_REPO} ${REMOTE_BRANCH}