Skip to content

Commit

Permalink
update workflows to use benoit's logic
Browse files Browse the repository at this point in the history
  • Loading branch information
dave-connors-3 committed May 31, 2023
1 parent dd7f542 commit 7f666ee
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/publish-docs-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish MkDocs on Main Branch

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mkdocs-material mike
- name: Deploy to GitHub Pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name "GitHub Actions Bot"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
mike deploy --push --message "Deployed by GitHub Actions" main
File renamed without changes.

0 comments on commit 7f666ee

Please sign in to comment.