Skip to content

Commit

Permalink
Merge pull request #5 from ncsurobotics/feature/cideploy
Browse files Browse the repository at this point in the history
Add Actions workflow for deploying site
  • Loading branch information
MB3hel authored Nov 14, 2023
2 parents 0f121d8 + c0e8ab4 commit e1b9b28
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Based on https://squidfunk.github.io/mkdocs-material/publishing-your-site/#with-github-actions-material-for-mkdocs
name: Deploy Site
on: workflow_dispatch
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v3
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install -r requirements.txt -U
- run: mkdocs gh-deploy --force

0 comments on commit e1b9b28

Please sign in to comment.