Skip to content

Fix dialog reference in assert dialog handling #601

Fix dialog reference in assert dialog handling

Fix dialog reference in assert dialog handling #601

name: Deploy Doxygen Reference Guide to Docs Branch + Build Website
on:
pull_request:
branches: [ master ]
push:
branches: [ master ]
workflow_dispatch:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout xtd source code (branch master)
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install Graphviz (for Doxygen diagrams)
run: sudo apt-get install graphviz
- name: Generate Doxygen documentation
uses: mattnotmitt/doxygen-action@v1.1.0
- name: Checkout website sources (branch docs)
uses: actions/checkout@v2
with:
ref: docs
path: site-docs
- name: Copy reference guide into website static folder
run: |
rm -rf site-docs/static/reference_guides/latest
mkdir -p site-docs/static/reference_guides/latest
cp -r reference_guide/html/* site-docs/static/reference_guides/latest/
- name: Commit updated reference guide into docs branch
working-directory: site-docs
run: |
git config user.name "xtd-ci-bot"
git config user.email "ci@xtd.dev"
git add static/reference_guides/latest
if git diff --cached --quiet; then
echo "No changes to commit."
else
git commit -m "Update reference guide [CI auto-commit]"
git push origin docs
fi
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
cache-dependency-path: site-docs/package-lock.json
- name: Install website dependencies
working-directory: site-docs
run: npm ci
- name: Build website with Docusaurus
working-directory: site-docs
run: npm run build
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: site-docs/build
deploy:
name: Deploy to GitHub Pages
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4