Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add website #550

Merged
merged 1 commit into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/scripts/setup-mkdocs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -e

pip install \
mkdocs==1.6.0 \
mkdocs-material==9.5.21 \
mkdocs-git-committers-plugin-2==2.3.0 \
mkdocs-git-revision-date-localized-plugin==1.2.6 \
mkdocs-material==9.5.21 \
pymdown-extensions==10.8.1
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,21 @@ jobs:
apps: scalafmt:3.7.14
- run: scalafmt --check

doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- uses: coursier/[email protected]
- uses: coursier/[email protected]
with:
jvm: 17
- run: |
.github/scripts/setup-mkdocs.sh && \
./mill -i docs.mkdocsBuild

publish:
if: github.event_name == 'push'
runs-on: ubuntu-latest
Expand All @@ -78,3 +93,19 @@ jobs:
PGP_SECRET: ${{ secrets.PUBLISH_SECRET_KEY }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}

update-website:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- uses: coursier/[email protected]
- uses: coursier/[email protected]
with:
jvm: 17
- run: |
.github/scripts/setup-mkdocs.sh && \
./mill -i docs.mkdocsGhDeploy
Loading