Merge pull request #93 from sophongo/build/commiter-key #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
# This is a basic workflow to help you get started with Actions | |
name: deploy-for-main | |
# Controls when the workflow will run | |
on: | |
push: | |
branches: [ main ] | |
env: | |
MKDOCS_GIT_COMMITTERS_APIKEY: ${{ secrets.MKDOCS_GIT_COMMITTERS_APIKEY }} | |
jobs: | |
build: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
steps: | |
# Clone the repository | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
cache: 'pip' | |
# Install dependencies | |
- run: pip install -r requirements.txt --no-cache-dir | |
# Build docs | |
- run: pwd | |
- run: mkdocs gh-deploy -c --force |