fix: typo of 1c514c542fdc689c4658f71d697b4213b8754a27 #76
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: deploy-docs | |
on: | |
push: | |
tags: | |
- "v*" | |
workflow_dispatch: | |
jobs: | |
meta: | |
uses: ./.github/workflows/meta.yml | |
build: | |
needs: meta | |
runs-on: ubuntu-latest | |
env: | |
DOC_VERSION: ${{ format('({0}) {1}', needs.meta.outputs.tag == github.ref_name && 'main' || github.ref_name, needs.meta.outputs.tag) }} | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Build Doxygen | |
uses: mattnotmitt/[email protected] | |
with: | |
doxyfile-path: tools/Doxygen/Doxyfile | |
- name: Build index.json | |
uses: MaaXYZ/MaaApiConverter@v2 | |
with: | |
version: ${{ env.DOC_VERSION }} | |
xml: ./docs-gen/html/xml | |
output: ./docs-gen/html | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs-gen/html | |
publish_branch: gh-pages | |
commit_message: ${{ env.DOC_VERSION }} |