Skip to content

Commit

Permalink
add github pages deployment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kushaangupta committed Oct 1, 2024
1 parent 79f1c32 commit 0c7fa81
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Deploy docs
on: [push, pull_request]
jobs:
build:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Download source
uses: actions/checkout@v3
- name: Install Crystal
uses: oprypin/install-crystal@v1
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install Python libs
run: pip install .
- name: Install Crystal libs
run: shards install
- name: Build site
run: mkdocs build
- name: Deploy to gh-pages
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: mkdocs gh-deploy --force

0 comments on commit 0c7fa81

Please sign in to comment.