v1.1.3 #26
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: Documentation | |
on: | |
release: | |
types: [published] | |
jobs: | |
docfx: | |
name: Deploy DocFX | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Main Branch | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Version | |
id: version | |
uses: thefringeninja/[email protected] | |
with: | |
tag-prefix: v | |
- name: Build Documentation Metadata | |
uses: nikeee/[email protected] | |
with: | |
args: metadata | |
- name: Checkout docfx Branch | |
uses: actions/checkout@v4 | |
with: | |
ref: docfx | |
path: docfx | |
fetch-depth: 0 | |
- name: Stage files for commit | |
working-directory: docfx | |
run: | | |
rm -rf src/ | |
cp -r ../docs/_meta src/ | |
mv src/.manifest src/manifest.json | |
- name: Commit doc assets | |
working-directory: docfx | |
run: | | |
git config user.name "${GITHUB_ACTOR}" | |
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" | |
git add src | |
git diff-index --quiet HEAD || git commit -m "Documentation v${{ steps.version.outputs.version }}" | |
git push |