testing automation for doumentation deployment #7
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
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
my_job: | |
name: deploy to staging | |
runs-on: ubuntu-latest # create a VM to run the workflow | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 # syncs your repository with the workflow's filesystem | |
- name: Set up Python | |
uses: actions/setup-python@v2 # sets up a Python environment | |
with: | |
python-version: '3.x' | |
- name: Install MkDocs | |
run: pip install mkdocs | |
- name: Deploy with MkDocs | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: mkdocs gh-deploy --force |