Skip to content

Commit

Permalink
create documentation microsite (#56)
Browse files Browse the repository at this point in the history
Adds a documentation microsite, and moves most contents of the readme over to the site 

Co-authored-by: Olivier Mélois <[email protected]>
Co-authored-by: Jakub Kozłowski <[email protected]>
  • Loading branch information
3 people authored Jan 20, 2022
1 parent d87e412 commit 5a9f9ba
Show file tree
Hide file tree
Showing 40 changed files with 8,686 additions and 497 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
run: |
sbt scalafmt_$BUILD_KEY \
headerCheck \
"docs/mdoc --in $PWD/README.md"
"docs/mdoc"
- name: Check for untracked changes
run: |
Expand Down Expand Up @@ -118,3 +118,19 @@ jobs:
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}

- name: Compile Documentation Markdown Files
if: startsWith(github.ref, 'refs/tags/v') # do not run for snapshots
run: sbt "docs/mdoc"

- name: Build Microsite
if: startsWith(github.ref, 'refs/tags/v') # do not run for snapshots
run: cd ./modules/website && yarn build

- name: Publish Microsite
if: startsWith(github.ref, 'refs/tags/v') # do not run for snapshots
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./modules/website/build
publish_branch: gh-pages
Loading

0 comments on commit 5a9f9ba

Please sign in to comment.