Skip to content

dispatch-from-docs #301

dispatch-from-docs

dispatch-from-docs #301

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run.
on:
repository_dispatch:
types: dispatch-from-docs
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
# runs-on: self-hosted
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v2
with:
# Repository name with owner. For example, actions/checkout
# Default: ${{ github.repository }}
repository: 'abcdesktopio/docs'
submodules: true
- uses: actions/setup-python@v2
with:
python-version: 3.9
# - name: Convert digramm abcdesktop.bastion.drawio to svg
# uses: Burnett01/[email protected]
# with:
# scale: 1.0
# src: opsdocs/docs/common/abcdesktop.bastion.drawio
# dest: opsdocs/docs/common/abcdesktop.bastion.drawio.svg
- name : install material
run: pip install mkdocs-material
- name: Run Makefile
run: |
mkdocs --version
make docs
- name: dump sources
run: |
ls -la opsdocs/site
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: opsdocs/site # The folder the action should deploy.