Proper version #6
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: | |
push: | |
branches: | |
- documentation | |
pull_request: | |
branches: | |
- documentation | |
jobs: | |
deploy: | |
name: Deploy Documentation | |
runs-on: ubuntu-latest | |
steps: | |
# https://github.com/marketplace/actions/checkout | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
# Verify directory structure | |
- name: List directory structure | |
run: | | |
ls -la | |
ls -la website/ | |
# https://github.com/marketplace/actions/docusaurus-builddeploy-action | |
- name: Deploy Docusaurus | |
id: deploy | |
uses: redkubes/[email protected] | |
with: | |
source-folder: website | |
git-user: github-actions[bot] | |
git-password: ${{ secrets.GITHUB_TOKEN }} | |
deployment-branch: gh-pages | |
# https://github.com/marketplace/actions/create-an-issue | |
- name: Create issue on failure | |
if: failure() | |
uses: JasonEtco/create-an-issue@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
filename: .github/DOCUMENTATION_ISSUE_TEMPLATE.md |