Skip to content

Commit

Permalink
Add GitHub Workflow for generating and deploying to Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
MishimaHaruna committed Jan 12, 2024
1 parent 3991c06 commit c75e8df
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: pages
run-name: Deploy docs

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: pip install mkdocs mkdocs-material
- run: cd docs
- run: mkdocs build -f mkdocs.yml
- name: Upload GitHub Pages artifact
uses: actions/[email protected]
with:
path: site

deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/.venv
/site/

0 comments on commit c75e8df

Please sign in to comment.