Skip to content

Commit

Permalink
Merge pull request #37 from seifrajhi/seifrajhi-patch-15
Browse files Browse the repository at this point in the history
Create main-site.yml
  • Loading branch information
seifrajhi authored Feb 18, 2024
2 parents ae58796 + 96a1d11 commit 8323a83
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/main-site.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: deploy to mkdocs

# the two different ways to trigger the workflow
on:
# enable manual trigger button in github actions web
workflow_dispatch:

# enable auto trigger based on both path and branch
push:

# only main branch
branches:
- main

# at least one changed file must match this path
paths:
- './**'

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.x
- run: pip install mkdocs-material mkdocs-static-i18n==1.2.0
- run: mkdocs gh-deploy --force

0 comments on commit 8323a83

Please sign in to comment.